Vertices Engine
v1.9.2.92
A Cross Platform game engine developed by Virtex Edge Design.
|
Mesh Renderer Component for centralizing the logic for rendering a 3D Mesh with a specific set of materials. More...
Public Member Functions | |
vxMaterial | GetMaterial (int i) |
List< T > | GetMaterials< T > () |
override void | Draw (vxCamera Camera, string renderpass) |
Draws this mesh renderer with it's mesh and it's materials. | |
void | DrawTempEntity (vxCamera Camera, Color wireColour) |
void | DrawWireFrame (Color wireColour) |
Public Member Functions inherited from VerticesEngine.vxComponent | |
void | Dispose () |
Called when disposed. | |
Protected Member Functions | |
virtual void | OnMeshSet () |
virtual void | AddToSceneCollection () |
virtual void | RemoveFromSceneCollection () |
override void | Initialise () |
Called once when created. | |
override void | OnDisposed () |
When the component or owning entity is disposed. | |
Properties | |
vxMesh | Mesh [get, set] |
The mesh reference rendererd by this component. A single mesh can be rendered multiple times by different entities using different materials. | |
bool | IsShadowCaster [get, set] |
Does this renderer cast shadows. | |
BoundingSphere | BoundingShape [get] |
List< vxMaterial > | Materials [get] |
The material to render the mesh with. | |
Properties inherited from VerticesEngine.Graphics.vxEntityRenderer | |
bool | IsCullable [get, set] |
Is this entity cullable by the camera? Or should it always render? | |
bool | IsRenderedThisFrame [get, set] |
Properties inherited from VerticesEngine.vxComponent | |
bool | IsEnabled [get, set] |
Is this enabled. | |
string | Name [get, set] |
vxEntity | Entity [get] |
The entitiy which owns this component. | |
bool | IsDisposed [get] |
Additional Inherited Members | |
Public Attributes inherited from VerticesEngine.Graphics.vxEntityRenderer | |
bool | IsRenderedForUtilCamera = true |
Should this renderer be run for a Util Camera. | |
Mesh Renderer Component for centralizing the logic for rendering a 3D Mesh with a specific set of materials.
|
virtual |
Draws this mesh renderer with it's mesh and it's materials.
Camera | |
renderpass |
Reimplemented from VerticesEngine.Graphics.vxEntityRenderer.
Reimplemented in VerticesEngine.Entities.Terrain.vxTerrainRenderer, and VerticesEngine.Graphics.vxStaticMeshRenderer.
List< T > VerticesEngine.Graphics.vxMeshRenderer.GetMaterials< T > | ( | ) |
T | : | vxMaterial |
|
protectedvirtual |
Called once when created.
Reimplemented from VerticesEngine.Graphics.vxEntityRenderer.
Reimplemented in VerticesEngine.Editor.Entities.WorkingPlaneRenderer, and VerticesEngine.Entities.Terrain.vxTerrainRenderer.
|
protectedvirtual |
When the component or owning entity is disposed.
Reimplemented from VerticesEngine.Graphics.vxEntityRenderer.
Reimplemented in VerticesEngine.Graphics.Rendering.vxStaticMeshBatchRenderer.