Click or drag to resize
ModelEntity Class
A basic renderable model. This type of model renderer renders the entire model as a single unit, and not as multiple meshes, but still provide some control over materials etc.
Inheritance Hierarchy

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

The ModelEntity type exposes the following members.

Constructors
  NameDescription
Public methodModelEntity(Model)
Create the model entity from model instance.
Public methodModelEntity(String)
Create the model entity from asset path.
Top
Properties
  NameDescription
Public propertyCameraDistanceBias
Add bias to distance from camera when sorting by distance from camera.
(Overrides BaseRenderableEntityCameraDistanceBias.)
Public propertyIsDebugEntity
If true, this entity will only show in debug / editor mode.
(Inherited from BaseRenderableEntity.)
Public propertyModel
Model to render.
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 methodCopyMaterials
Copy materials from another dictionary of materials.
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 methodGetMaterial
Get material for a given mesh id.
Public methodGetMaterials
Return a list with all materials in model. Note: if alternative materials are set, will return them. Note2: prevent duplications, eg if even if more than one part uses the same material it will only return it once.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSetMaterial
Set alternative material for a specific mesh id.
Public methodSetMaterials
Set alternative materials for a specific mesh id.
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 fieldMaterialOverride
Optional custom render settings for this specific instance. Note: this method is much less efficient than materials override.
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