Changeset 4862 in orxonox.OLD for orxonox/trunk/src/lib/graphics/render2D/element_2d.h
- Timestamp:
- Jul 14, 2005, 2:49:33 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/render2D/element_2d.h
r4861 r4862 16 16 typedef enum 17 17 { 18 E2D_ TOP, //!< Will be rendered on top of everything else19 E2D_ MEDIUM, //!< Will be rendered on the medium Layer.20 E2D_ BOTTOM, //!< Will be rendered on the bottom Layer21 E2D_ BELOW_ALL, //!< Will be rendered below the 3D-scene. @todo make this work.18 E2D_BELOW_ALL = 1, //!< Will be rendered below the 3D-scene. @todo make this work. 19 E2D_BOTTOM = 2, //!< Will be rendered on the bottom Layer 20 E2D_MEDIUM = 4, //!< Will be rendered on the medium Layer. 21 E2D_TOP = 8, //!< Will be rendered on top of everything else 22 22 23 E2D_LAYER_COUNT //!< The count of Layers. 24 } E2DLayer; 25 23 E2D_LAYER_COUNT = 4 //!< The count of Layers. 24 } E2D_LAYER; 25 #define E2D_DEFAULT_LAYER E2D_TOP 26 #define E2D_ALL_LAYERS E2D_TOP | E2D_MEDIUM | E2D_BOTTOM | E2D_BELOW_ALL 26 27 27 28 typedef enum … … 56 57 /** this returns the Absolute Position on the screen set by positioning in the tick-phase */ 57 58 inline const Position2D& getPosition2D() { return this->absPos2D; }; 59 58 60 /** @param alignment the new Alignment of the 2D-Element */ 59 61 inline void setAlignment(E2D_ALIGNMENT alignment) { this->alignment = alignment; }; 60 62 void setAlignment(const char* alignment); 61 /** @param layer the Layer this is drawn on */ 62 inline void setLayer(E2DLayer layer) { this->layer = layer; };63 64 void setLayer(E2D_LAYER layer); 63 65 void setLayer(const char* layer); 66 /** @returns the Layer this Element is drawn to */ 67 inline E2D_LAYER getLayer() { return this->layer; }; 68 64 69 /** @param visible true if the Element should be visible false otherwise (will not be rendered) */ 65 70 inline void setVisibility(bool visible) { this->visible = visible; }; 71 66 72 /** @param bindNode the Node this 2D-element should follow. if NULL the Element will not follow anything */ 67 73 inline void setBindNode(const PNode* bindNode) { this->bindNode = bindNode; }; … … 86 92 private: 87 93 bool visible; 88 E2D Layerlayer;94 E2D_LAYER layer; 89 95 }; 90 96
Note: See TracChangeset
for help on using the changeset viewer.