77 std::chrono::steady_clock::time_point m_oTimeSinceLastDisplay;
Provides utility for creating and handling colors.
The base class of everything renderable by RenderTarget.
#define SDLU_BEGIN
Definition: Util.hpp:32
uint32_t Uint32
Definition: Util.hpp:23
Everything that can be rendered derives from this class.
Definition: Drawable.hpp:18
Acts as a wrapper for SDL_Renderer*. You can't (and shouldn't) instantiate this, but rather derive fr...
Definition: RenderTarget.hpp:22
void Draw(const Drawable &drawable)
Draws a sdlu::Drawable to the SDL_Renderer.
void SetMaxFramerate(Uint32 max)
Sets a maximum framerate on the display function.
RenderTarget(SDL_Surface *target)
Create Renderer and bind it to a texture.
SDL_Renderer * renderer
The renderer object.
Definition: RenderTarget.hpp:72
void Display()
Display the current state of the renderer to the screen.
void Clear(const Color &color=Color::Black)
Clears the display.
RenderTarget(SDL_Window *target)
Create Renderer and bind it to a window.
A structure holding color data.
Definition: Color.hpp:20
static const Color Black
Default Color Black (#000000FF)
Definition: Color.hpp:65