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

Static Mesh Renderer is used for grouping static objects together to all be rendered as a group instead of rendering each mesh/object individually. Note that this must be an object which doesn't move and will use the same material for all objects. More...

Inheritance diagram for VerticesEngine.Graphics.vxStaticMeshRenderer:
VerticesEngine.Graphics.vxMeshRenderer VerticesEngine.Graphics.vxEntityRenderer VerticesEngine.vxComponent

Public Member Functions

void RegisterAsArchetype< T > ()
 Registeres this static mesh renderer for a given archetype.
 
override void Draw (vxCamera Camera, string renderpass)
 Draws this mesh renderer with it's mesh and it's materials.
 
- Public Member Functions inherited from VerticesEngine.Graphics.vxMeshRenderer
vxMaterial GetMaterial (int i)
 
List< T > GetMaterials< T > ()
 
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

override void OnMeshSet ()
 
- Protected Member Functions inherited from VerticesEngine.Graphics.vxMeshRenderer
virtual void AddToSceneCollection ()
 
virtual void RemoveFromSceneCollection ()
 
override void Initialise ()
 Called once when created.
 
override void OnDisposed ()
 When the component or owning entity is disposed.
 

Additional Inherited Members

- Public Attributes inherited from VerticesEngine.Graphics.vxEntityRenderer
bool IsRenderedForUtilCamera = true
 Should this renderer be run for a Util Camera.
 
- Properties inherited from VerticesEngine.Graphics.vxMeshRenderer
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]
 

Detailed Description

Static Mesh Renderer is used for grouping static objects together to all be rendered as a group instead of rendering each mesh/object individually. Note that this must be an object which doesn't move and will use the same material for all objects.

Member Function Documentation

◆ Draw()

override void VerticesEngine.Graphics.vxStaticMeshRenderer.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.vxMeshRenderer.

◆ OnMeshSet()

override void VerticesEngine.Graphics.vxStaticMeshRenderer.OnMeshSet ( )
protectedvirtual

◆ RegisterAsArchetype< T >()

void VerticesEngine.Graphics.vxStaticMeshRenderer.RegisterAsArchetype< T > ( )

Registeres this static mesh renderer for a given archetype.

Template Parameters
T
Parameters
type
Type Constraints
T :vxEntity3D 

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