FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
#include <targetrenderer.h>
Public Member Functions | |
~RenderTarget () | |
Destructor. More... | |
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 () |
void | render () |
ImagePtr | getTarget () |
Private Member Functions | |
RenderTarget (RenderBackend *rb, const std::string &name, uint32_t width, uint32_t height) | |
RenderTarget (RenderBackend *rb, ImagePtr &image) | |
RenderTarget (const RenderTarget &rhs) | |
RenderTarget & | operator= (const RenderTarget &rhs) |
Private Attributes | |
std::map< std::string, std::vector< OffRendererElementInfo * > > | m_groups |
RenderBackend * | m_renderbackend |
ImagePtr | m_target |
Friends | |
class | TargetRenderer |
Definition at line 37 of file targetrenderer.h.
FIFE::RenderTarget::~RenderTarget | ( | ) |
Destructor.
Definition at line 53 of file targetrenderer.cpp.
|
private |
Definition at line 44 of file targetrenderer.cpp.
References FIFE::DynamicSingleton< ImageManager >::instance(), FIFE::ImageManager::loadBlank(), and m_target.
Referenced by getTarget().
|
private |
Definition at line 49 of file targetrenderer.cpp.
|
private |
void FIFE::RenderTarget::addAnimation | ( | const std::string & | group, |
Point | n, | ||
AnimationPtr | animation | ||
) |
Definition at line 91 of file targetrenderer.cpp.
References m_groups.
Definition at line 86 of file targetrenderer.cpp.
References m_groups.
void FIFE::RenderTarget::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 56 of file targetrenderer.cpp.
References m_groups.
void FIFE::RenderTarget::addPoint | ( | const std::string & | group, |
Point | n, | ||
uint8_t | r, | ||
uint8_t | g, | ||
uint8_t | b, | ||
uint8_t | a = 255 |
||
) |
Definition at line 61 of file targetrenderer.cpp.
References m_groups.
void FIFE::RenderTarget::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 71 of file targetrenderer.cpp.
References m_groups.
void FIFE::RenderTarget::addText | ( | const std::string & | group, |
Point | n, | ||
IFont * | font, | ||
const std::string & | text | ||
) |
Definition at line 81 of file targetrenderer.cpp.
References m_groups.
void FIFE::RenderTarget::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 66 of file targetrenderer.cpp.
References m_groups.
void FIFE::RenderTarget::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 76 of file targetrenderer.cpp.
References m_groups.
|
inline |
Definition at line 57 of file targetrenderer.h.
References m_target, operator=(), and RenderTarget().
|
private |
void FIFE::RenderTarget::removeAll | ( | const std::string & | group | ) |
Definition at line 101 of file targetrenderer.cpp.
References m_groups.
void FIFE::RenderTarget::removeAll | ( | ) |
Definition at line 110 of file targetrenderer.cpp.
References m_groups.
void FIFE::RenderTarget::render | ( | ) |
Definition at line 114 of file targetrenderer.cpp.
References m_groups, and m_renderbackend.
Referenced by FIFE::TargetRenderer::render().
void FIFE::RenderTarget::resizeImage | ( | const std::string & | group, |
Point | n, | ||
ImagePtr | image, | ||
int32_t | width, | ||
int32_t | height | ||
) |
Definition at line 96 of file targetrenderer.cpp.
References m_groups.
|
friend |
Definition at line 38 of file targetrenderer.h.
|
private |
Definition at line 66 of file targetrenderer.h.
Referenced by addAnimation(), addImage(), addLine(), addPoint(), addQuad(), addText(), addTriangle(), addVertex(), removeAll(), render(), and resizeImage().
|
private |
Definition at line 67 of file targetrenderer.h.
Referenced by render().
|
private |
Definition at line 68 of file targetrenderer.h.
Referenced by getTarget(), FIFE::TargetRenderer::render(), and RenderTarget().