Jump to content

Surfaces

A surface is the base rendering unit used by the engine. Meshes, terrains, emitters, and other entities all use surfaces to draw primitives on screen. However, the user only needs to access mesh surfaces directly. Each (mesh) surface is a collection of vertex and indice arrays with a material that is drawn in one draw call.

Commands

AddTriangle
AddVertex
CountTriangles
CountVertices
GetSurfaceMaterial
GetVertexColor
GetVertexNormal
GetVertexPosition
GetVertexTexCoords
PaintSurface
SetVertexColor
SetVertexNormal
SetVertexPosition
SetVertexTexCoords
TriangleVertex
  • You cannot add records