Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Oct 18, 2005, 5:33:11 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Elemet2D-drawing better
prevent segfault in setParent with NULL as new Parent in Element2D and PNode

File:
1 edited

Legend:

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

    r5387 r5397  
    2121typedef enum
    2222{
    23   E2D_BELOW_ALL                 =     1,        //!< Will be rendered below the 3D-scene. @todo make this work.
    24   E2D_BOTTOM                    =     2,        //!< Will be rendered on the bottom Layer
    25   E2D_MEDIUM                    =     4,        //!< Will be rendered on the medium Layer.
    26   E2D_TOP                       =     8,        //!< Will be rendered on top of everything else
    27 
    28   E2D_LAYER_COUNT               =     4         //!< The count of Layers.
     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,
    2931} E2D_LAYER;
    3032#define E2D_DEFAULT_LAYER       E2D_TOP
    31 #define E2D_ALL_LAYERS          E2D_TOP | E2D_MEDIUM | E2D_BOTTOM | E2D_BELOW_ALL
    3233
    3334typedef enum
     
    153154    void setParent2D (const char* parentName);
    154155    /** @returns the parent of this Element2D */
    155     inline Element2D* getParent () const { return this->parent; };
     156    inline Element2D* getParent2D () const { return this->parent; };
    156157    /** @returns the List of Children of this Element2D */
    157158    inline const tList<Element2D>* getChildren2D() const { return this->children; };
Note: See TracChangeset for help on using the changeset viewer.