Click or drag to resize
CombinedMeshesEntity Class
A special renderer that takes several other renderers (meshes, models etc) and merge them into a single batch. This optimization allows you to build levels out of static models, and reduce draw calls by merging them into one static mesh at runtime. Note: While its a good way to reduce draw calls, don't create combined meshes too big or else you'll lose some culling optimizations.
Inheritance Hierarchy

Namespace:  GeonBit.Core.Graphics
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class CombinedMeshesEntity : BaseRenderableEntity

The CombinedMeshesEntity type exposes the following members.

Constructors
  NameDescription
Public methodCombinedMeshesEntity
Initializes a new instance of the CombinedMeshesEntity class
Top
Properties
  NameDescription
Public propertyCameraDistanceBias
Add bias to distance from camera when sorting by distance from camera. This is useful for particles, sprites etc.
(Inherited from BaseRenderableEntity.)
Public propertyIsDebugEntity
If true, this entity will only show in debug / editor mode.
(Inherited from BaseRenderableEntity.)
Public propertyVisible
Get / Set if this entity is visible.
(Inherited from BaseRenderableEntity.)
Public propertyWireFrame
If true, will draw just the wireframe of the entity. Note: settings this property will change the rendering queue property.
(Inherited from BaseRenderableEntity.)
Top
Methods
  NameDescription
Public methodAddModel
Add a model to the combined mesh.
Public methodAddModelMesh
Add a model mesh to the combined mesh.
Public methodAddVertices(VertexPositionNormalTexture, Int16, MaterialAPI)
Add array of vertices to the combined mesh.
Public methodAddVertices(VertexPositionNormalTexture, Int16, Matrix, MaterialAPI)
Add array of vertices to the combined mesh.
Public methodBuild
Build the combined meshes renderer.
Public methodClear
Clear everything from the combined meshed renderer.
Public methodClone
Clone this combined entity.
Public methodDoEntityDraw
Draw this model.
(Overrides BaseRenderableEntityDoEntityDraw(Matrix).)
Public methodDraw
Draw the entity.
(Inherited from BaseRenderableEntity.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetBoundingBox
Get the bounding box of this entity, either from cache or calculate it.
(Inherited from BaseRenderableEntity.)
Public methodGetBoundingSphere
Get the bounding sphere of this entity, either from cache or calculate it.
(Inherited from BaseRenderableEntity.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLastBoundingBox
Return the last calculated bounding box. Note: this value may be out-of-date if transformations changed since last calculation.
(Inherited from BaseRenderableEntity.)
Public methodGetLastBoundingSphere
Return the last calculated bounding sphere. Note: this value may be out-of-date if transformations changed since last calculation.
(Inherited from BaseRenderableEntity.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldBlendingState
Blending state for this entity.
(Inherited from BaseRenderableEntity.)
Public fieldRenderingQueue
Which rendering queue to use for this entity. Rendering queues determine different rendering settings (like opacity support, blending, sorting etc) + the order in which the entities are drawn.
(Inherited from BaseRenderableEntity.)
Top
See Also