FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
FIFE::OffRenderer Class Reference

#include <offrenderer.h>

+ Collaboration diagram for FIFE::OffRenderer:

Public Member Functions

 OffRenderer (RenderBackend *renderbackend)
 constructor. More...
 
virtual ~OffRenderer ()
 Destructor. More...
 
void setEnabled (bool enabled)
 
bool isEnabled ()
 
void setClipArea (Rect area)
 
const RectgetClipArea () const
 
void render ()
 
void addLine (const std::string &group, Point n1, Point n2, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)
 
void addPoint (const std::string &group, Point n, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)
 
void addTriangle (const std::string &group, Point n1, Point n2, Point n3, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)
 
void addQuad (const std::string &group, Point n1, Point n2, Point n3, Point n4, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)
 
void addVertex (const std::string &group, Point n, int32_t size, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)
 
void addText (const std::string &group, Point n, IFont *font, const std::string &text)
 
void addImage (const std::string &group, Point n, ImagePtr image)
 
void addAnimation (const std::string &group, Point n, AnimationPtr animation)
 
void resizeImage (const std::string &group, Point n, ImagePtr image, int32_t width, int32_t height)
 
void removeAll (const std::string &group)
 
void removeAll ()
 

Private Attributes

std::map< std::string, std::vector< OffRendererElementInfo * > > m_groups
 
RenderBackendm_renderbackend
 
bool m_enabled
 
Rect m_area
 

Detailed Description

Definition at line 155 of file offrenderer.h.

Constructor & Destructor Documentation

FIFE::OffRenderer::OffRenderer ( RenderBackend renderbackend)

constructor.

Parameters
renderbackendto use

Definition at line 193 of file offrenderer.cpp.

FIFE::OffRenderer::~OffRenderer ( )
virtual

Destructor.

Definition at line 200 of file offrenderer.cpp.

References removeAll().

Member Function Documentation

void FIFE::OffRenderer::addAnimation ( const std::string &  group,
Point  n,
AnimationPtr  animation 
)

Definition at line 248 of file offrenderer.cpp.

References m_groups.

void FIFE::OffRenderer::addImage ( const std::string &  group,
Point  n,
ImagePtr  image 
)

Definition at line 244 of file offrenderer.cpp.

References m_groups.

void FIFE::OffRenderer::addLine ( const std::string &  group,
Point  n1,
Point  n2,
uint8_t  r,
uint8_t  g,
uint8_t  b,
uint8_t  a = 255 
)

Definition at line 220 of file offrenderer.cpp.

References m_groups.

void FIFE::OffRenderer::addPoint ( const std::string &  group,
Point  n,
uint8_t  r,
uint8_t  g,
uint8_t  b,
uint8_t  a = 255 
)

Definition at line 224 of file offrenderer.cpp.

References m_groups.

void FIFE::OffRenderer::addQuad ( const std::string &  group,
Point  n1,
Point  n2,
Point  n3,
Point  n4,
uint8_t  r,
uint8_t  g,
uint8_t  b,
uint8_t  a = 255 
)

Definition at line 232 of file offrenderer.cpp.

References m_groups.

void FIFE::OffRenderer::addText ( const std::string &  group,
Point  n,
IFont font,
const std::string &  text 
)

Definition at line 240 of file offrenderer.cpp.

References m_groups.

void FIFE::OffRenderer::addTriangle ( const std::string &  group,
Point  n1,
Point  n2,
Point  n3,
uint8_t  r,
uint8_t  g,
uint8_t  b,
uint8_t  a = 255 
)

Definition at line 228 of file offrenderer.cpp.

References m_groups.

void FIFE::OffRenderer::addVertex ( const std::string &  group,
Point  n,
int32_t  size,
uint8_t  r,
uint8_t  g,
uint8_t  b,
uint8_t  a = 255 
)

Definition at line 236 of file offrenderer.cpp.

References m_groups.

const Rect & FIFE::OffRenderer::getClipArea ( ) const

Definition at line 216 of file offrenderer.cpp.

References m_area.

bool FIFE::OffRenderer::isEnabled ( )

Definition at line 208 of file offrenderer.cpp.

References m_enabled.

void FIFE::OffRenderer::removeAll ( const std::string &  group)

Definition at line 256 of file offrenderer.cpp.

References m_groups.

void FIFE::OffRenderer::removeAll ( )

Definition at line 264 of file offrenderer.cpp.

References m_groups.

Referenced by ~OffRenderer().

+ Here is the caller graph for this function:

void FIFE::OffRenderer::render ( )
void FIFE::OffRenderer::resizeImage ( const std::string &  group,
Point  n,
ImagePtr  image,
int32_t  width,
int32_t  height 
)

Definition at line 252 of file offrenderer.cpp.

References m_groups.

void FIFE::OffRenderer::setClipArea ( Rect  area)

Definition at line 212 of file offrenderer.cpp.

References m_area.

void FIFE::OffRenderer::setEnabled ( bool  enabled)

Definition at line 204 of file offrenderer.cpp.

References m_enabled.

Member Data Documentation

Rect FIFE::OffRenderer::m_area
private

Definition at line 188 of file offrenderer.h.

Referenced by getClipArea(), render(), and setClipArea().

bool FIFE::OffRenderer::m_enabled
private

Definition at line 187 of file offrenderer.h.

Referenced by isEnabled(), render(), and setEnabled().

std::map<std::string, std::vector<OffRendererElementInfo*> > FIFE::OffRenderer::m_groups
private
RenderBackend* FIFE::OffRenderer::m_renderbackend
private

Definition at line 186 of file offrenderer.h.

Referenced by render().


The documentation for this class was generated from the following files: