Public Member Functions

cyber::renderer::BlockRenderer Class Reference

#include <BlockRenderer.h>

Inheritance diagram for cyber::renderer::BlockRenderer:
cyber::renderer::Renderer

List of all members.

Public Member Functions

 BlockRenderer (const ConfigRepository *cfg)
virtual ~BlockRenderer (void)
bool draw_block (const world::blocks::BlockDesc *block_desc, D3DCOLOR color)
bool draw_region (const ml7::Matrix2x3 &transform, const bl7::geometry2::Poly &poly, D3DCOLOR color)
bool draw_fringe (const ml7::Matrix2x3 &transform, const bl7::geometry2::Poly &poly, D3DCOLOR color)

Detailed Description

The class for rendering blocks.


Constructor & Destructor Documentation

cyber::renderer::BlockRenderer::BlockRenderer ( const ConfigRepository cfg  ) 

Explicit constructor.

cyber::renderer::BlockRenderer::~BlockRenderer ( void   )  [virtual]

Destructor.


Member Function Documentation

bool cyber::renderer::BlockRenderer::draw_block ( const world::blocks::BlockDesc block_desc,
D3DCOLOR  color 
)

Draws a single block object.

bool cyber::renderer::BlockRenderer::draw_fringe ( const ml7::Matrix2x3 transform,
const bl7::geometry2::Poly poly,
D3DCOLOR  color 
)

Draws the fringe of a single block object.

bool cyber::renderer::BlockRenderer::draw_region ( const ml7::Matrix2x3 transform,
const bl7::geometry2::Poly poly,
D3DCOLOR  color 
)

Draws the region of a single block object.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines