Changeset 6777 in orxonox.OLD for branches/network/src/lib/graphics/graphics_engine.cc
- Timestamp:
- Jan 26, 2006, 4:46:39 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/graphics/graphics_engine.cc
r6772 r6777 41 41 #include "shell_command.h" 42 42 43 44 #include "parser/tinyxml/tinyxml.h" 45 #include "load_param.h" 46 #include "factory.h" 47 43 48 #ifdef __WIN32__ 44 49 #include "class_list.h" … … 113 118 GraphicsEngine::singletonRef = NULL; 114 119 } 120 121 122 /** 123 * loads the GraphicsEngine Specific Parameters. 124 * @param root: the XML-Element to load the Data From 125 */ 126 void GraphicsEngine::loadParams(const TiXmlElement* root) 127 { 128 LoadParamXML(root, "load-effect", this, GraphicsEngine, loadGraphicsEffectXML) 129 .describe("loads a graphics effect"); 130 } 131 115 132 116 133 /** … … 150 167 this->initVideo(atoi(resolution.getString(0)), atoi(resolution.getString(1)), 16); 151 168 152 GraphicsEffect* fe = new FogEffect(NULL);153 this->loadGraphicsEffect(fe);154 fe->activate();155 PRINTF(0)("--------------------------------------------------------------\n");169 // GraphicsEffect* fe = new FogEffect(NULL); 170 // this->loadGraphicsEffect(fe); 171 // fe->activate(); 172 // PRINTF(0)("--------------------------------------------------------------\n"); 156 173 } 157 174 … … 665 682 666 683 /** 684 * @param root The XML-element to load GraphicsEffects from 685 */ 686 void GraphicsEngine::loadGraphicsEffectXML(const TiXmlElement* root) 687 { 688 const TiXmlElement* element = root->FirstChildElement(); 689 690 while (element != NULL) 691 { 692 Factory::fabricate(element); 693 694 element = element->NextSiblingElement(); 695 } 696 } 697 698 699 /** 667 700 * loads a GraphicsEffect into the engine 668 701 * @param effect the GraphicsEffect to add
Note: See TracChangeset
for help on using the changeset viewer.