Renderer Class Reference

#include <renderer.hpp>

Inherited by GLRenderer, and SDLRenderer.

List of all members.

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 Rendererinstance ()

Static Protected Attributes

static Rendererinstance_


Detailed Description

Definition at line 40 of file renderer.hpp.


Constructor & Destructor Documentation

Renderer::Renderer (  ) 

Definition at line 21 of file renderer.cpp.

00022 {
00023 }

Renderer::~Renderer (  )  [virtual]

Definition at line 25 of file renderer.cpp.

00026 {
00027 }


Member Function Documentation

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]

Implemented in GLRenderer, and SDLRenderer.

Referenced by DrawingContext::do_drawing().

virtual void Renderer::flip (  )  [pure virtual]

Implemented in GLRenderer, and SDLRenderer.

Referenced by DrawingContext::do_drawing().

virtual void Renderer::resize ( int  w,
int  h 
) [pure virtual]

Implemented in GLRenderer, and SDLRenderer.

Referenced by ScreenManager::process_events().

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().

00056 { assert(instance_); return instance_; }


Member Data Documentation

Renderer * Renderer::instance_ [static, protected]

Definition at line 59 of file renderer.hpp.

Referenced by GLRenderer::GLRenderer(), instance(), and SDLRenderer::SDLRenderer().


The documentation for this class was generated from the following files:
Generated on Mon Jun 9 03:38:34 2014 for SuperTux by  doxygen 1.5.1