Vertices Engine  v1.9.2.92
A Cross Platform game engine developed by Virtex Edge Design.
Loading...
Searching...
No Matches
VerticesEngine.Graphics.vxMeshRenderer Class Reference

Mesh Renderer Component for centralizing the logic for rendering a 3D Mesh with a specific set of materials. More...

Inheritance diagram for VerticesEngine.Graphics.vxMeshRenderer:
VerticesEngine.Graphics.vxEntityRenderer VerticesEngine.vxComponent VerticesEngine.Editor.Entities.WorkingPlaneRenderer VerticesEngine.Entities.Terrain.vxTerrainRenderer VerticesEngine.Graphics.Rendering.vxStaticMeshBatchRenderer VerticesEngine.Graphics.vxLineRenderer VerticesEngine.Graphics.vxParticleRenderer VerticesEngine.Graphics.vxSkyboxRenderer VerticesEngine.Graphics.vxStaticMeshRenderer

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< vxMaterialMaterials [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.
 

Detailed Description

Mesh Renderer Component for centralizing the logic for rendering a 3D Mesh with a specific set of materials.

Member Function Documentation

◆ Draw()

override void VerticesEngine.Graphics.vxMeshRenderer.Draw ( vxCamera Camera,
string renderpass )
virtual

Draws this mesh renderer with it's mesh and it's materials.

Parameters
Camera
renderpass

Reimplemented from VerticesEngine.Graphics.vxEntityRenderer.

Reimplemented in VerticesEngine.Entities.Terrain.vxTerrainRenderer, and VerticesEngine.Graphics.vxStaticMeshRenderer.

◆ GetMaterials< T >()

List< T > VerticesEngine.Graphics.vxMeshRenderer.GetMaterials< T > ( )
Type Constraints
T :vxMaterial 

◆ Initialise()

override void VerticesEngine.Graphics.vxMeshRenderer.Initialise ( )
protectedvirtual

◆ OnDisposed()

override void VerticesEngine.Graphics.vxMeshRenderer.OnDisposed ( )
protectedvirtual

When the component or owning entity is disposed.

Reimplemented from VerticesEngine.Graphics.vxEntityRenderer.

Reimplemented in VerticesEngine.Graphics.Rendering.vxStaticMeshBatchRenderer.


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