FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
FIFE::TargetRenderer Class Reference

#include <targetrenderer.h>

+ Collaboration diagram for FIFE::TargetRenderer:

Classes

struct  RenderJob
 

Public Member Functions

 TargetRenderer (RenderBackend *renderbackend)
 Constructor. More...
 
virtual ~TargetRenderer ()
 Destructor. More...
 
RenderTargetPtr createRenderTarget (const std::string &name, uint32_t width, uint32_t height)
 Creates render target. More...
 
RenderTargetPtr createRenderTarget (ImagePtr &image)
 
void setRenderTarget (const std::string &targetname, bool discard, int32_t ndraws=0)
 
void render ()
 

Private Types

typedef std::map< std::string, RenderJobRenderJobMap
 

Private Attributes

RenderJobMap m_targets
 
RenderBackendm_renderbackend
 

Detailed Description

Definition at line 72 of file targetrenderer.h.

Member Typedef Documentation

typedef std::map<std::string, RenderJob> FIFE::TargetRenderer::RenderJobMap
private

Definition at line 102 of file targetrenderer.h.

Constructor & Destructor Documentation

FIFE::TargetRenderer::TargetRenderer ( RenderBackend renderbackend)

Constructor.

Parameters
renderbackendto use

Definition at line 124 of file targetrenderer.cpp.

FIFE::TargetRenderer::~TargetRenderer ( )
virtual

Destructor.

Definition at line 128 of file targetrenderer.cpp.

Member Function Documentation

RenderTargetPtr FIFE::TargetRenderer::createRenderTarget ( const std::string &  name,
uint32_t  width,
uint32_t  height 
)
void FIFE::TargetRenderer::render ( )
void FIFE::TargetRenderer::setRenderTarget ( const std::string &  targetname,
bool  discard,
int32_t  ndraws = 0 
)

Definition at line 157 of file targetrenderer.cpp.

References m_targets.

Referenced by FIFE::CellRenderer::createFowMap(), and FIFE::CellRenderer::updateFowMap().

+ Here is the caller graph for this function:

Member Data Documentation

RenderBackend* FIFE::TargetRenderer::m_renderbackend
private

Definition at line 104 of file targetrenderer.h.

Referenced by createRenderTarget(), and render().

RenderJobMap FIFE::TargetRenderer::m_targets
private

Definition at line 103 of file targetrenderer.h.

Referenced by createRenderTarget(), render(), and setRenderTarget().


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