#include <renderer.hpp>
Inherited by GLRenderer, and SDLRenderer.
Public Member Functions | |
Renderer () | |
virtual | ~Renderer () |
virtual void | draw_surface (const DrawingRequest &request)=0 |
virtual void | draw_surface_part (const DrawingRequest &request)=0 |
virtual void | draw_gradient (const DrawingRequest &request)=0 |
virtual void | draw_filled_rect (const DrawingRequest &request)=0 |
virtual void | draw_inverse_ellipse (const DrawingRequest &request)=0 |
virtual void | do_take_screenshot ()=0 |
virtual void | flip ()=0 |
virtual void | resize (int w, int h)=0 |
virtual void | apply_config ()=0 |
Static Public Member Functions | |
static Renderer * | instance () |
Static Protected Attributes | |
static Renderer * | instance_ |
Definition at line 40 of file renderer.hpp.
Renderer::Renderer | ( | ) |
Renderer::~Renderer | ( | ) | [virtual] |
virtual void Renderer::draw_surface | ( | const DrawingRequest & | request | ) | [pure virtual] |
Implemented in GLRenderer, and SDLRenderer.
Referenced by DrawingContext::handle_drawing_requests().
virtual void Renderer::draw_surface_part | ( | const DrawingRequest & | request | ) | [pure virtual] |
Implemented in GLRenderer, and SDLRenderer.
Referenced by Font::draw_chars(), and DrawingContext::handle_drawing_requests().
virtual void Renderer::draw_gradient | ( | const DrawingRequest & | request | ) | [pure virtual] |
Implemented in GLRenderer, and SDLRenderer.
Referenced by DrawingContext::handle_drawing_requests().
virtual void Renderer::draw_filled_rect | ( | const DrawingRequest & | request | ) | [pure virtual] |
Implemented in GLRenderer, and SDLRenderer.
Referenced by DrawingContext::handle_drawing_requests().
virtual void Renderer::draw_inverse_ellipse | ( | const DrawingRequest & | request | ) | [pure virtual] |
Implemented in GLRenderer, and SDLRenderer.
Referenced by DrawingContext::handle_drawing_requests().
virtual void Renderer::do_take_screenshot | ( | ) | [pure virtual] |
virtual void Renderer::flip | ( | ) | [pure virtual] |
virtual void Renderer::resize | ( | int | w, | |
int | h | |||
) | [pure virtual] |
virtual void Renderer::apply_config | ( | ) | [pure virtual] |
Implemented in GLRenderer, and SDLRenderer.
Referenced by OptionsMenu::menu_action(), and ScreenManager::process_events().
static Renderer* Renderer::instance | ( | ) | [inline, static] |
Definition at line 56 of file renderer.hpp.
References instance_.
Referenced by OptionsMenu::menu_action(), and ScreenManager::process_events().
Renderer * Renderer::instance_ [static, protected] |
Definition at line 59 of file renderer.hpp.
Referenced by GLRenderer::GLRenderer(), instance(), and SDLRenderer::SDLRenderer().