![]() |
PROTO::KLUDGE
0.1
Quick prototyping library for games using SDL and OpenGL.
|
Interface for creating drawable entities. Part of the Decorator pattern for drawable objects used in the game. More...
#include <Drawable.hpp>
Public Member Functions | |
Drawable () | |
Drawable constructor. Call explicitly in inherited classes. More... | |
virtual | ~Drawable () |
virtual void | draw (SDL_Renderer *const renderTarget, SDL_Rect *const renderTargetRect)=0 |
Draw the drawable entity to a render target. More... | |
Interface for creating drawable entities. Part of the Decorator pattern for drawable objects used in the game.
pk::Drawable::Drawable | ( | ) |
Drawable constructor. Call explicitly in inherited classes.
|
virtual |
|
pure virtual |
Draw the drawable entity to a render target.
SDL_Renderer | * const renderTarget - the target to draw to. |
SDL_Rect | * const renderTargetRect - the rect belonging to the render target. |
Implemented in pk::Text, and pk::Sprite.