
All functions provided by this interface accept pixel coordinates.
Public Member Functions | |
| virtual void | clearClipRegion ()=0 |
| clears the clip region | |
| virtual void | drawRect (const int &x, const int &y, const int &w, const int &h, const Color &c)=0 |
| outlines a rectangle | |
| virtual void | drawString (const string &s, const int &x, const int &y, const Font &f, const Color &c)=0 |
| draws a string | |
| virtual void | endDrawing ()=0 |
| leaves 2D drawing mode | |
| void | fillRect (const int &x, const int &y, const int &w, const int &h, const UV &tl, const UV &br, const Color &c=Color(1.0f, 1.0f, 1.0f), const unsigned int &tu=0) |
| draws a textured rectangle | |
| virtual void | fillRect (const int &x, const int &y, const int &w, const int &h, const UV &p0, const UV &p1, const UV &p2, const UV &p3, const Color &c=Color(1.0f, 1.0f, 1.0f), const unsigned int &tu=0)=0 |
| draws a textured rectangle | |
| virtual void | fillRect (const int &x, const int &y, const int &w, const int &h, const Color &c)=0 |
| draws a solid single colored rectangle | |
| virtual void | popState ()=0 |
| returns the renderer to the last pushed state | |
| virtual void | pushState ()=0 |
| saves the current state | |
| virtual void | setClipRegion (const int &x, const int &y, const int &w, const int &h)=0 |
| sets the clipping region | |
| virtual void | setTexture (const TextureRef &tex, const unsigned int &unit=0)=0 |
assigns tex to texture unit unit | |
| virtual void | startDrawing ()=0 |
| switches to 2D drawing mode | |
| virtual | ~Renderer2D () |
|
|
|
|
|
clears the clip region Everything will be drawn. Implemented in ONE::render::G3DRenderer. |
|
||||||||||||||||||||||||
|
outlines a rectangle
Implemented in ONE::render::G3DRenderer. |
|
||||||||||||||||||||||||
|
draws a string
Implemented in ONE::render::G3DRenderer. |
|
|
leaves 2D drawing mode
Implemented in ONE::render::G3DRenderer. |
|
||||||||||||||||||||||||||||||||||||
|
draws a textured rectangle
The rectangle is textured with the last texture set by the |
|
||||||||||||||||||||||||||||||||||||||||||||
|
draws a textured rectangle
The triangle is textured with the last texture set by the Implemented in ONE::render::G3DRenderer. |
|
||||||||||||||||||||||||
|
draws a solid single colored rectangle
Implemented in ONE::render::G3DRenderer. |
|
|
returns the renderer to the last pushed state
Implemented in ONE::render::G3DRenderer. |
|
|
saves the current state
Implemented in ONE::render::G3DRenderer. |
|
||||||||||||||||||||
|
sets the clipping region Only objects inside the given rectangle are drawn.
Implemented in ONE::render::G3DRenderer. |
|
||||||||||||
|
assigns
Implemented in ONE::render::G3DRenderer. |
|
|
switches to 2D drawing mode
Implemented in ONE::render::G3DRenderer. |
1.4.3