Classes | Public Member Functions

cyber::renderer::PrimitiveRenderer Class Reference

#include <PrimitiveRenderer.h>

Inheritance diagram for cyber::renderer::PrimitiveRenderer:
cyber::renderer::Renderer

List of all members.

Classes

struct  FringeVertex
struct  RegionVertex
struct  SimpleVertex

Public Member Functions

 PrimitiveRenderer (const ConfigRepository *cfg)
 ~PrimitiveRenderer (void)
bool draw_line (const ml7::Vector2 &p, const ml7::Vector2 &q, 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)

Constructor & Destructor Documentation

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

Explicit constructor.

cyber::renderer::PrimitiveRenderer::~PrimitiveRenderer ( void   ) 

Destructor.


Member Function Documentation

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

Draws the fringe of a poly.

bool cyber::renderer::PrimitiveRenderer::draw_line ( const ml7::Vector2 p,
const ml7::Vector2 q,
D3DCOLOR  color 
)

Draws a single line between two points.

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

Draws the region of a poly.


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