Changeset 6295 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- Dec 26, 2005, 3:01:14 AM (19 years ago)
- Location:
- trunk/src/lib/graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/material.cc
r5437 r6295 75 75 { 76 76 // setting diffuse color 77 //glColor3f (diffuse[0], diffuse[1], diffuse[2]);77 glColor3f (diffuse[0], diffuse[1], diffuse[2]); 78 78 glMaterialfv(GL_FRONT, GL_DIFFUSE, this->diffuse); 79 79 -
trunk/src/lib/graphics/render2D/element_2d.cc
r6142 r6295 25 25 #include "graphics_engine.h" 26 26 #include "load_param.h" 27 #include "parser/tinyxml/tinyxml.h"28 27 #include "class_list.h" 29 28 … … 42 41 43 42 /** 44 * standard constructor43 * @brief standard constructor 45 44 * @param parent the parent to set for this Element2D 46 45 * … … 60 59 61 60 /** 62 * standard deconstructor61 * @brief standard deconstructor 63 62 * 64 63 * There are two general ways to delete an Element2D … … 97 96 98 97 /** 99 * initializes a Element2D98 * @brief initializes a Element2D 100 99 */ 101 100 void Element2D::init() … … 121 120 122 121 /** 123 * Loads the Parameters of an Element2D from...122 * @brief Loads the Parameters of an Element2D from... 124 123 * @param root The XML-element to load from 125 124 */ … … 160 159 161 160 // cycling properties 162 if (root != NULL) 163 { 164 LOAD_PARAM_START_CYCLE(root, element); 165 { 166 LoadParam_CYCLE(element, "parent", this, Element2D, addChild2D) 167 .describe("adds a new Child to the current Node."); 168 } 169 LOAD_PARAM_END_CYCLE(element); 170 } 161 LOAD_PARAM_START_CYCLE(root, element); 162 { 163 LoadParam_CYCLE(element, "parent", this, Element2D, addChild2D) 164 .describe("adds a new Child to the current Node."); 165 } 166 LOAD_PARAM_END_CYCLE(element); 171 167 } 172 168 … … 511 507 void Element2D::addChild2D (Element2D* child) 512 508 { 509 assert(child != NULL); 513 510 if( likely(child->parent != NULL)) 514 511 { … … 662 659 void Element2D::eraseChild(Element2D* child) 663 660 { 661 assert (this != NULL && child != NULL); 664 662 std::list<Element2D*>::iterator childIT = std::find(this->children.begin(), this->children.end(), child); 665 663 this->children.erase(childIT); … … 667 665 668 666 /** 669 * sets the mode of this parent manually667 * @brief sets the mode of this parent manually 670 668 * @param parentMode a String representing this parentingMode 671 669 */ … … 1051 1049 1052 1050 /** 1053 * creates the one and only NullElement2D 1054 * @param absCoordinate the cordinate of the Parent (normally Vector(0,0,0)) 1051 * @brief creates the one and only NullElement2D 1055 1052 */ 1056 1053 NullElement2D::NullElement2D () : Element2D(NULL, E2D_LAYER_BELOW_ALL)
Note: See TracChangeset
for help on using the changeset viewer.