Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5398 in orxonox.OLD for trunk/src/lib/graphics/render2D/element_2d.h


Ignore:
Timestamp:
Oct 18, 2005, 6:28:54 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: fixed a bug in the allocation of Element2D

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/render2D/element_2d.h

    r5397 r5398  
    2121typedef enum
    2222{
    23   E2D_BELOW_ALL,       //!< Will be rendered below the 3D-scene. @todo make this work.
    24   E2D_BOTTOM,          //!< Will be rendered on the bottom Layer
    25   E2D_MEDIUM,          //!< Will be rendered on the medium Layer.
    26   E2D_TOP,             //!< Will be rendered on top of everything else
    27 
    28   E2D_LAYER_COUNT,     //!< The count of Layers.
    29 
    30   E2D_LAYER_ALL,
     23  E2D_LAYER_BELOW_ALL           =     0,        //!< Will be rendered below the 3D-scene. @todo make this work.
     24  E2D_LAYER_BOTTOM              =     1,        //!< Will be rendered on the bottom Layer
     25  E2D_LAYER_MEDIUM              =     2,        //!< Will be rendered on the medium Layer.
     26  E2D_LAYER_TOP                 =     3,        //!< Will be rendered on top of everything else
     27
     28  E2D_LAYER_COUNT               =     4,         //!< The count of Layers.
     29
     30  E2D_LAYER_ALL                 =     5,
    3131} E2D_LAYER;
    32 #define E2D_DEFAULT_LAYER       E2D_TOP
     32#define E2D_DEFAULT_LAYER       E2D_LAYER_MEDIUM
    3333
    3434typedef enum
     
    8181    void setLayer(const char* layer);
    8282    /** @returns the Layer this Element is drawn to */
    83     inline E2D_LAYER getLayer() { return this->layer; };
     83    inline E2D_LAYER getLayer() const { return this->layer; };
    8484
    8585    /** @param visible true if the Element should be visible false otherwise (will not be rendered) */
Note: See TracChangeset for help on using the changeset viewer.