Changeset 7840 in orxonox.OLD for trunk/src/lib/graphics/render2D/render_2d.cc
- Timestamp:
- May 24, 2006, 10:38:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/render2D/render_2d.cc
r7457 r7840 25 25 26 26 /** 27 * standard constructor27 * @brief standard constructor 28 28 */ 29 29 Render2D::Render2D () … … 36 36 37 37 /** 38 * the singleton reference to this class38 * @brief the singleton reference to this class 39 39 */ 40 40 Render2D* Render2D::singletonRef = NULL; 41 41 42 42 /** 43 * standard deconstructor43 * @brief standard deconstructor 44 44 */ 45 45 Render2D::~Render2D () … … 51 51 52 52 /** 53 * updates all the 2d-elements53 * @brief updates all the 2d-elements 54 54 * @param dt the timestep since last dt 55 55 */ … … 61 61 62 62 /** 63 * ticks all the 2d-elements63 * @brief ticks all the 2d-elements 64 64 * @param dt the timestep since last dt 65 65 */ … … 70 70 71 71 /** 72 * renders all the Elements of the Render2D-engine's layer72 * @brief renders all the Elements of the Render2D-engine's layer 73 73 * @param layer the Layer to draw (if E2D_LAYER_ALL then all layers will be drawn) 74 74 */ 75 void Render2D::draw( short layer) const75 void Render2D::draw(E2D_LAYER from, E2D_LAYER to) const 76 76 { 77 77 GraphicsEngine::enter2DMode(); 78 Element2D::getNullElement()->draw2D(E2D_LAYER_ALL); 78 79 Element2D::getNullElement()->draw2D(from, to); 79 80 if (this->showNodes) 80 81 Element2D::getNullElement()->debugDraw2D(0); 82 81 83 GraphicsEngine::leave2DMode(); 82 84 }
Note: See TracChangeset
for help on using the changeset viewer.