Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Oct 19, 2005, 1:16:20 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: removed old unused functionality, and added some comments

File:
1 edited

Legend:

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

    r5403 r5404  
    2525
    2626  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,
    3127} E2D_LAYER;
    3228#define E2D_DEFAULT_LAYER       E2D_LAYER_MEDIUM
     29#define E2D_LAYER_ALL           4
    3330
    3431typedef enum
     
    6259};
    6360
    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 */
    6571class Element2D : virtual public BaseObject {
    6672
     
    110116    virtual void draw() const = 0;
    111117    void tick2D(float dt);
    112     void draw2D(E2D_LAYER layer) const;
     118    void draw2D(short layer) const;
    113119
    114120    // LIKE PNODE
Note: See TracChangeset for help on using the changeset viewer.