Classes | Public Member Functions

cyber::renderer::WorldRenderer Class Reference

#include <WorldRenderer.h>

Inheritance diagram for cyber::renderer::WorldRenderer:
cyber::renderer::Renderer

List of all members.

Classes

struct  GridVertex

Public Member Functions

 WorldRenderer (const ConfigRepository *cfg)
virtual ~WorldRenderer (void)
bool set_camera (const ml7::Vector3 &position)
bool draw_grid (float scale, D3DCOLOR color)
bool draw_fixed_blocks (const world::WorldDesc *world_desc, D3DCOLOR color)

Detailed Description

The class for rendering "the world".


Constructor & Destructor Documentation

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

Explicit constructor.

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

Destructor.


Member Function Documentation

bool cyber::renderer::WorldRenderer::draw_fixed_blocks ( const world::WorldDesc world_desc,
D3DCOLOR  color 
)

Draws the fixed blocks of the given world description.

bool cyber::renderer::WorldRenderer::draw_grid ( float  scale,
D3DCOLOR  color 
)

Draws the grid the objects should be aligned to.

bool cyber::renderer::WorldRenderer::set_camera ( const ml7::Vector3 position  ) 

Sets the camera by applying the view and projection transforms.


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