FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
#include <offrenderer.h>
Public Member Functions | |
OffRenderer (RenderBackend *renderbackend) | |
constructor. More... | |
virtual | ~OffRenderer () |
Destructor. More... | |
void | setEnabled (bool enabled) |
bool | isEnabled () |
void | setClipArea (Rect area) |
const Rect & | getClipArea () 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 |
RenderBackend * | m_renderbackend |
bool | m_enabled |
Rect | m_area |
Definition at line 155 of file offrenderer.h.
FIFE::OffRenderer::OffRenderer | ( | RenderBackend * | renderbackend | ) |
|
virtual |
void FIFE::OffRenderer::addAnimation | ( | const std::string & | group, |
Point | n, | ||
AnimationPtr | animation | ||
) |
Definition at line 248 of file offrenderer.cpp.
References m_groups.
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().
void FIFE::OffRenderer::render | ( | ) |
Definition at line 268 of file offrenderer.cpp.
References m_area, m_enabled, m_groups, m_renderbackend, FIFE::RenderBackend::popClipArea(), FIFE::RenderBackend::pushClipArea(), and FIFE::RenderBackend::renderVertexArrays().
Referenced by FIFE::Engine::pump().
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.
|
private |
Definition at line 188 of file offrenderer.h.
Referenced by getClipArea(), render(), and setClipArea().
|
private |
Definition at line 187 of file offrenderer.h.
Referenced by isEnabled(), render(), and setEnabled().
|
private |
Definition at line 185 of file offrenderer.h.
Referenced by addAnimation(), addImage(), addLine(), addPoint(), addQuad(), addText(), addTriangle(), addVertex(), removeAll(), render(), and resizeImage().
|
private |
Definition at line 186 of file offrenderer.h.
Referenced by render().