GhoulPrimitive::Drawer Class Reference

#include <GhoulPrimitives.h>

Inheritance diagram for GhoulPrimitive::Drawer:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 Drawer ()
virtual ~Drawer ()
virtual void Prepare (eOpType opType, eGeometryChange gcHint, size_t vertexCount, size_t indexCount=0, bool hasNormals=true, bool hasTexCoords=true)
void AddVertex (kVector3 p, kVector3 n=Vector3::ZERO, kReal u=0.0, kReal v=0.0)
virtual void AddVertex (kReal x, kReal y, kReal z=0.0, kReal nx=0.0, kReal ny=0.0, kReal nz=0.0, kReal u=0.0, kReal v=0.0)
virtual void AddIndex (IndexInt i)
virtual void Finish ()


Detailed Description

always call prepare before, and finish after adding vertices and indices abstract Base Class for different types of drawing (DrawToMesh,Renderable,Decorators for Scaling, UV switching/animating, Coloring...)

Definition at line 85 of file GhoulPrimitives.h.


Constructor & Destructor Documentation

Drawer::Drawer (  ) 

Definition at line 15 of file GhoulPrimitives.cpp.

Drawer::~Drawer (  )  [virtual]

Definition at line 16 of file GhoulPrimitives.cpp.


Member Function Documentation

void Drawer::Prepare ( eOpType  opType,
eGeometryChange  gcHint,
size_t  vertexCount,
size_t  indexCount = 0,
bool  hasNormals = true,
bool  hasTexCoords = true 
) [virtual]

Reimplemented in GhoulPrimitive::OgreRenderableDrawer.

Definition at line 17 of file GhoulPrimitives.cpp.

Referenced by GhoulPrimitive::Loft::Update().

void Drawer::AddVertex ( kVector3  p,
kVector3  n = Vector3::ZERO,
kReal  u = 0.0,
kReal  v = 0.0 
)

Definition at line 18 of file GhoulPrimitives.cpp.

Referenced by GhoulPrimitive::Loft::Update().

void Drawer::AddVertex ( kReal  x,
kReal  y,
kReal  z = 0.0,
kReal  nx = 0.0,
kReal  ny = 0.0,
kReal  nz = 0.0,
kReal  u = 0.0,
kReal  v = 0.0 
) [virtual]

Reimplemented in GhoulPrimitive::OgreRenderableDrawer.

Definition at line 19 of file GhoulPrimitives.cpp.

void Drawer::AddIndex ( IndexInt  i  )  [virtual]

Reimplemented in GhoulPrimitive::OgreRenderableDrawer.

Definition at line 20 of file GhoulPrimitives.cpp.

Referenced by GhoulPrimitive::Loft::Update().

void Drawer::Finish (  )  [virtual]

Reimplemented in GhoulPrimitive::OgreRenderableDrawer.

Definition at line 21 of file GhoulPrimitives.cpp.

Referenced by GhoulPrimitive::Loft::Update().


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

Generated on Tue May 22 06:00:35 2012 for cpp by  doxygen 1.5.6