Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/graphics/render2D/render_2d.h @ 5561

Last change on this file since 5561 was 5420, checked in by bensch, 19 years ago

orxonox/trunk: Font is now Right, and the Rendering 'should be' faster.

File size: 982 bytes
RevLine 
[4838]1/*!
[4839]2 * @file render_2d.h
3 * @brief Definition of the 2D-rendering engine singleton Class
[5420]4 */
[3655]5
[4839]6#ifndef _RENDER_2D_H
7#define _RENDER_2D_H
[3655]8
9#include "base_object.h"
[4848]10#include "element_2d.h"
[5405]11// FORWARD DECLARATION
[4840]12template <class T> class tList;
[3655]13
14//! A default singleton class.
[4839]15class Render2D : public BaseObject {
[5397]16  friend class Element2D;
[3655]17
[5397]18  public:
19    virtual ~Render2D();
20    /** @returns a Pointer to the only object of this Class */
21    inline static Render2D* getInstance() { if (!singletonRef) singletonRef = new Render2D();  return singletonRef; };
[3655]22
[5417]23    void toggleNodesVisibility() { this->showNodes = !this->showNodes; };
24
[5406]25    void update(float dt);
[5397]26    void tick(float dt);
[5404]27    void draw(short layer) const;
[4840]28
[5397]29  private:
30    Render2D();
31    static Render2D*              singletonRef;                    //!< Reference to this class.
32
[5417]33    bool                          showNodes;                       //!< If the debug-Nodes should be visible
[5401]34 };
[3655]35
[4839]36#endif /* _RENDER_2D_H */
Note: See TracBrowser for help on using the repository browser.