![[]](/images/special/trans.gif)
LibN2L-4 Library Code ReferenceClassesCompounds Files Members Method Index Full Reference gui/startup.cppGo to the documentation of this file.00001 /************************************************************************ 00002 Nova-2 Library (libN2L, or simply n2l) Game development C++ Library 00003 Copyright (C) 2003 Aaron Cameron 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with this library; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 00019 A copy of the GNU Lesser General Public License has been provided with 00020 this library in the file 'COPYING'. 00021 00022 Contact information for the author of this library has been provided 00023 with this library in the file 'AUTHOR'. 00024 ************************************************************************/ 00025 #include "gui/startup.h" 00026 00027 #include "n2l/gui.h" 00028 00029 namespace n2l 00030 { 00031 00032 /**************************************************************************/ 00033 void n2lGuiStartup() 00034 { 00035 cGuiFactory::current().registerLoader( 00036 "n2l::cGuiSpriteMousePointer", 00037 cGuiElement::loadNew<cGuiSpriteMousePointer> ); 00038 00039 // cGuiFactory::current().registerLoader( 00040 // "n2l::cGuiProgressBar", cGuiProgressBar::loadNew ); 00041 00042 cGuiFactory::current().registerLoader( 00043 "n2l::cGuiSlider", cGuiElement::loadNew<cGuiSlider> ); 00044 00045 cGuiFactory::current().registerLoader( 00046 "n2l::cGuiInteractive", cGuiElement::loadNew<cGuiInteractive> ); 00047 00048 cGuiFactory::current().registerLoader( 00049 "n2l::cGuiButton", cGuiElement::loadNew<cGuiButton> ); 00050 00051 cGuiFactory::current().registerLoader( 00052 "n2l::cGuiSButton", cGuiElement::loadNew<cGuiSButton> ); 00053 00054 cGuiFactory::current().registerLoader( 00055 "n2l::cGuiButtonSelectBox", 00056 cGuiElement::loadNew<cGuiButtonSelectBox> ); 00057 00058 cGuiFactory::current().registerLoader( 00059 "n2l::cGuiSButtonSelectBox", 00060 cGuiElement::loadNew<cGuiSButtonSelectBox> ); 00061 00062 cGuiFactory::current().registerLoader( 00063 "n2l::cGuiTextDisplay", cGuiElement::loadNew<cGuiTextDisplay> ); 00064 00065 cGuiFactory::current().registerLoader( 00066 "n2l::cGuiTextInput", cGuiElement::loadNew<cGuiTextInput> ); 00067 00068 cGuiFactory::current().registerLoader( 00069 "n2l::cGuiSprite", cGuiSprite::loadNew ); 00070 00071 cGuiFactory::current().registerLoader( 00072 "n2l::cGuiLabel", cGuiElement::loadNew<cGuiLabel> ); 00073 00074 cGuiFactory::current().registerLoader( 00075 "n2l::cGuiModelView", cGuiModelView::loadNew ); 00076 00077 cGuiFactory::current().registerLoader( 00078 "n2l::cGuiCanvas", cGuiElement::loadNew<cGuiCanvas> ); 00079 00080 00081 cGuiSEFactory::current().registerLoader( 00082 "n2l::cGuiSEFollowB3Curve", 00083 cGuiSEInt::loadNew<cGuiSEFollowB3Curve> ); 00084 00085 cGuiSEFactory::current().registerLoader( 00086 "n2l::cGuiSEModelOrbit", 00087 cGuiSEInt::loadNew<cGuiSEModelOrbit> ); 00088 00089 cGuiSEFactory::current().registerLoader( 00090 "n2l::cGuiSEAutoscroll", 00091 cGuiSEInt::loadNew<cGuiSEAutoscroll> ); 00092 00093 cGuiSEFactory::current().registerLoader( 00094 "n2l::cGuiSEColourTrans", 00095 cGuiSEInt::loadNew<cGuiSEColourTrans> ); 00096 00097 00098 cGuiACFactory::current().registerLoader( 00099 "n2l::cGuiACAddEffect", cGuiACInt::loadNew<cGuiACAddEffect> ); 00100 00101 cGuiACFactory::current().registerLoader( 00102 "n2l::cGuiACClearEffects", 00103 cGuiACInt::loadNew<cGuiACClearEffects> ); 00104 00105 cGuiACFactory::current().registerLoader( 00106 "n2l::cGuiACRemoveElement", 00107 cGuiACInt::loadNew<cGuiACRemoveElement> ); 00108 00109 cGuiACFactory::current().registerLoader( 00110 "n2l::cGuiACIf", cGuiACInt::loadNew<cGuiACIf> ); 00111 00112 cGuiACFactory::current().registerLoader( 00113 "n2l::cGuiACIfProp", cGuiACInt::loadNew<cGuiACIfProp> ); 00114 00115 cGuiACFactory::current().registerLoader( 00116 "n2l::cGuiACList", cGuiACInt::loadNew<cGuiACList> ); 00117 00118 cGuiACFactory::current().registerLoader( 00119 "n2l::cGuiACPlaySound", cGuiACInt::loadNew<cGuiACPlaySound> ); 00120 00121 cGuiACFactory::current().registerLoader( 00122 "n2l::cGuiACSetProp", cGuiACInt::loadNew<cGuiACSetProp> ); 00123 } 00124 00125 /**************************************************************************/ 00126 void n2lGuiShutdown() 00127 { 00128 00129 } 00130 00131 } // namespace n2l |