14 #ifndef GK_RENDERTARGET_HPP_ 15 #define GK_RENDERTARGET_HPP_ 57 #endif // GK_RENDERTARGET_HPP_ void beginDrawing(const RenderStates &states)
2D view that defines what is shown on screen
void applyCurrentView(const RenderStates &states)
IntRect getViewport(const View &view) const
void endDrawing(const RenderStates &states)
virtual Vector2u getSize() const =0
void setView(const View &view)
void draw(const IDrawable &drawable, const RenderStates &states=RenderStates::Default)
static const RenderStates Default
IntRect m_previousViewport
Abstract base class for objects that can be drawn to a render target.
virtual const View & getDefaultView() const =0
void drawElements(const VertexBuffer &vertexBuffer, GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, const RenderStates &states=RenderStates::Default)
const View * getView() const