
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] |
| Powertek.OpenGl.PtMesh.PtMesh | ( | ) |
| 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.
| cm | ||
| matList | ||
| useShadowFBODraw |
| void Powertek.OpenGl.PtMesh.BuildShadowVBOs | ( | ) |
BuildShadowVBOs.
| void Powertek.OpenGl.PtMesh.CalcShadowVolumes | ( | Vertex3f | lightPos | ) |
Calculate Shadow Volumes.
| lightPos |
| void Powertek.OpenGl.PtMesh.CalcShadowVolumesDiffuse | ( | PtLight | light | ) |
Calculate Shadow Volumes for Diffuse Light.
| 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.
| mode |
| static Vertex3f [] Powertek.OpenGl.PtMesh.GenDrawVertices | ( | PtCoreMesh | cm | ) | [static] |
Generate DrawVertices.
| cm |
| void Powertek.OpenGl.PtMesh.Init | ( | ) |
Init Mesh.
| void Powertek.OpenGl.PtMesh.RenderShadowVolumes | ( | PtLight | light | ) |
Render Shadow Volumes.
| light |
| void Powertek.OpenGl.PtMesh.ShowNormals | ( | ) |
Show, Render Normals.
Matref refs to mat in ASE Obj.
| String Powertek.OpenGl.PtMesh.Name = "" |
Mesh Name.
Shadow volume triangles > post calculated.
bool Powertek.OpenGl.PtMesh.UseShadowFBODraw [get, set] |
UseShadowFBODraw.
1.5.7.1