Changeset 5404 in orxonox.OLD for trunk/src/lib/graphics/render2D
- Timestamp:
- Oct 19, 2005, 1:16:20 AM (19 years ago)
- Location:
- trunk/src/lib/graphics/render2D
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/render2D/element_2d.cc
r5403 r5404 840 840 /** 841 841 * draws all the Elements from this element2D downwards 842 * @param layer the maximal Layer to draw. 843 */ 844 void Element2D::draw2D( E2D_LAYERlayer) const842 * @param layer the maximal Layer to draw. @see E2D_LAYER 843 */ 844 void Element2D::draw2D(short layer) const 845 845 { 846 846 if (this->visible) -
trunk/src/lib/graphics/render2D/element_2d.h
r5403 r5404 25 25 26 26 E2D_LAYER_COUNT = 4, //!< The count of Layers. 27 28 E2D_LAYER_EXTERN = -1, //!< In a Layers handeled externally.29 30 E2D_LAYER_ALL = 5,31 27 } E2D_LAYER; 32 28 #define E2D_DEFAULT_LAYER E2D_LAYER_MEDIUM 29 #define E2D_LAYER_ALL 4 33 30 34 31 typedef enum … … 62 59 }; 63 60 64 //! A class for ... 61 //! A class for 2D-elements 62 /** 63 * this class mainly tries to imitate PNode in its functionality, but on a 2D-level 64 * it extends PNode in the Sense of the tick-ability/draw-alility layering (and size) 65 * 66 * Layering: Layers are sorted into the Tree. e.g: 67 * the roor is in the lowest Layer, the leaves in the highest (of each branche) 68 * the first child of each node is in the lowest layer of all children, the last in the highest 69 * -> the tree is sorted on insertion of a new Child: @see Element2D::addChild2D() 70 */ 65 71 class Element2D : virtual public BaseObject { 66 72 … … 110 116 virtual void draw() const = 0; 111 117 void tick2D(float dt); 112 void draw2D( E2D_LAYERlayer) const;118 void draw2D(short layer) const; 113 119 114 120 // LIKE PNODE -
trunk/src/lib/graphics/render2D/render_2d.cc
r5401 r5404 64 64 * @param layer the Layer to draw (if E2D_LAYER_ALL then all layers will be drawn) 65 65 */ 66 void Render2D::draw( E2D_LAYERlayer) const66 void Render2D::draw(short layer) const 67 67 { 68 68 GraphicsEngine::enter2DMode(); -
trunk/src/lib/graphics/render2D/render_2d.h
r5401 r5404 23 23 24 24 void tick(float dt); 25 void draw( E2D_LAYERlayer) const;25 void draw(short layer) const; 26 26 27 27 private:
Note: See TracChangeset
for help on using the changeset viewer.