Class Mesh
Loads and manages meshes into OpenGL.
Supported formats: 3DS BLEND (Blender 3D) DAE/Collada FBX IFC-STEP ASE DXF HMP MD2 MD3 MD5 MDC MDL NFF PLY STL X OBJ SMD LWO LXO LWS TER AC3D MS3D COB Q3BSP XGL CSM BVH B3D NDO Ogre XML Q3D
Inherits from
-
(base class)Asset
Constructors
Name | Description |
---|---|
this
|
Creates a mesh .
|
Fields
Name | Type | Description |
---|---|---|
owner
|
GameObject |
The GameObject that owns this component. |
yaml
|
dyaml. |
The node that defined the component. |
Properties
Name | Type | Description |
---|---|---|
animated
[get]
|
bool |
|
animationData
[get]
|
AssetAnimation |
|
boundingBox
[get]
|
gl3n. |
|
glIndexBuffer
[get]
|
uint |
|
glVertexArray
[get]
|
uint |
|
glVertexBuffer
[get]
|
uint |
|
numIndices
[get]
|
uint |
|
numVertices
[get]
|
uint |
|
isUsed
[get]
|
bool |
|
resource
[get]
|
Resource |
|
animated
[set]
|
bool |
|
glIndexBuffer
[set]
|
uint |
|
glVertexArray
[set]
|
uint |
|
glVertexBuffer
[set]
|
uint |
|
numIndices
[set]
|
uint |
|
numVertices
[set]
|
uint |
Methods
Name | Description |
---|---|
refresh
|
Refresh the asset. |
shutdown
|
Deletes mesh data stored on the GPU. |
draw
|
Called on the draw cycle.
|
initialize
|
The function called on initialization of the object. |
update
|
Called on the update cycle.
|