#include <WorldRenderer.h>
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) |
The class for rendering "the world".
| cyber::renderer::WorldRenderer::WorldRenderer | ( | const ConfigRepository * | cfg | ) |
Explicit constructor.
| cyber::renderer::WorldRenderer::~WorldRenderer | ( | void | ) | [virtual] |
Destructor.
| 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.
1.7.1