GLStats
0.3.3
|
The default renderer. More...
#include <renderer.h>
Public Member Functions | |
Renderer () | |
Construct a new renderer. More... | |
Renderer (const Renderer &from) | |
Copy-construct a new renderer. More... | |
virtual | ~Renderer () |
Destruct this renderer. More... | |
Renderer & | operator= (const Renderer &from) |
Assign the settings from another renderer. More... | |
void | setViewport (const uint32_t width, const uint32_t height) |
Set the size of the rendering area in pixels. More... | |
void | draw (const Data &data) |
Render the data set. More... | |
Protected Member Functions | |
virtual void | drawText (const std::string &text)=0 |
Friends | |
class | detail::Renderer |
The default renderer.
Definition at line 32 of file renderer.h.
GLStats::Renderer::Renderer | ( | ) |
Construct a new renderer.
|
explicit |
Copy-construct a new renderer.
|
virtual |
Destruct this renderer.
void GLStats::Renderer::draw | ( | const Data & | data | ) |
Render the data set.
The OpenGL state has to be set up to ...
data | the statistics data |
Assign the settings from another renderer.
void GLStats::Renderer::setViewport | ( | const uint32_t | width, |
const uint32_t | height | ||
) |
Set the size of the rendering area in pixels.