Powertek.OpenGl.PtMesh Class Reference

PtMesh. More...

Collaboration diagram for Powertek.OpenGl.PtMesh:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PtMesh ()
void Draw (PtMeshDrawMode mode)
void Init ()
void Clear ()
void ClearVBOs ()
void ClearShadowData ()
void CalcShadowVolumes (Vertex3f lightPos)
void CalcShadowVolumesDiffuse (PtLight light)
void RenderShadowVolumes (PtLight light)
void ShowNormals ()
void BuildShadowVBOs ()
void BuildDrawData (PtCoreMesh cm, List< PtMaterial > matList, bool useShadowFBODraw)

Static Public Member Functions

static Vertex3f[] GenDrawVertices (PtCoreMesh cm)

Public Attributes

String Name = ""
int MatId
PtTriSMesh2[] ShadowTriangles = null

Properties

bool UseShadowFBODraw [get, set]


Detailed Description


Constructor & Destructor Documentation

Powertek.OpenGl.PtMesh.PtMesh (  ) 


Member Function Documentation

void Powertek.OpenGl.PtMesh.BuildDrawData ( PtCoreMesh  cm,
List< PtMaterial matList,
bool  useShadowFBODraw 
)

Build vbo from internal vertices, normal data of PtCoreMesh must be calculated before.

Parameters:
cm 
matList 
useShadowFBODraw 

void Powertek.OpenGl.PtMesh.BuildShadowVBOs (  ) 

BuildShadowVBOs.

void Powertek.OpenGl.PtMesh.CalcShadowVolumes ( Vertex3f  lightPos  ) 

Calculate Shadow Volumes.

Parameters:
lightPos 

void Powertek.OpenGl.PtMesh.CalcShadowVolumesDiffuse ( PtLight  light  ) 

Calculate Shadow Volumes for Diffuse Light.

Parameters:
light 

void Powertek.OpenGl.PtMesh.Clear (  ) 

Clear Mesh.

void Powertek.OpenGl.PtMesh.ClearShadowData (  ) 

ClearShadowData.

void Powertek.OpenGl.PtMesh.ClearVBOs (  ) 

ClearVBOs.

void Powertek.OpenGl.PtMesh.Draw ( PtMeshDrawMode  mode  ) 

Draw Mesh.

Parameters:
mode 

static Vertex3f [] Powertek.OpenGl.PtMesh.GenDrawVertices ( PtCoreMesh  cm  )  [static]

Generate DrawVertices.

Parameters:
cm 
Returns:

void Powertek.OpenGl.PtMesh.Init (  ) 

Init Mesh.

void Powertek.OpenGl.PtMesh.RenderShadowVolumes ( PtLight  light  ) 

Render Shadow Volumes.

Parameters:
light 

void Powertek.OpenGl.PtMesh.ShowNormals (  ) 

Show, Render Normals.


Member Data Documentation

Matref refs to mat in ASE Obj.

Mesh Name.

Shadow volume triangles > post calculated.


Property Documentation

bool Powertek.OpenGl.PtMesh.UseShadowFBODraw [get, set]

UseShadowFBODraw.


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

Generated on Thu Nov 20 04:46:33 2008 for Powertek.OpenGl, 2.0.6.64 by  doxygen 1.5.7.1