Komodo Engine
C PROJECT_LOGO=
Komodo.Core.ECS.Components.Drawable3DComponent Class Reference

Represents any 3D model to be drawn in a Komodo.Core.ECS.Systems.Render3DSystem More...

Inheritance diagram for Komodo.Core.ECS.Components.Drawable3DComponent:
Komodo.Core.ECS.Components.Component

Public Member Functions

 Drawable3DComponent (Model model)
 Creates a Drawable3DComponent with a given Komodo.Core.Engine.Graphics.Model. More...
 
 Drawable3DComponent (string modelPath)
 Creates a Drawable3DComponent with a filepath to a compiled Microsoft.Xna.Framework.Graphics.Model content file. More...
 

Properties

BoundingBox BoundingBox [get]
 Provides a Microsoft.Xna.Framework.BoundingBox representing the bounds of the model. More...
 
Color DiffuseColor [get, set]
 Microsoft.Xna.Framework.Color to tint the entire Komodo.Core.Engine.Graphics.Model with. More...
 
float Depth [get]
 Z dimensional extremity. More...
 
float Height [get]
 Y dimensional extremity. More...
 
Model ModelData [get, set]
 Raw model data loaded from disk. More...
 
string ModelPath [get, set]
 Path of the Komodo.Core.Engine.Graphics.Model if the Drawable3DComponent was provided a model filepath via Drawable3DComponent.Drawable3DComponent(string). More...
 
Texture Texture [get, set]
 Texture to be applied to the Komodo.Core.Engine.Graphics.Model surface. More...
 
string TexturePath [get, set]
 Path to texture to be applied to the Komodo.Core.Engine.Graphics.Model surface. More...
 
float Width [get]
 X dimensional extremity. More...
 
- Properties inherited from Komodo.Core.ECS.Components.Component
GameGame [get]
 Each Component maintains a reference to the Komodo.Core.Game instance. More...
 
Guid ID [get]
 Unique identifier for the Component. More...
 
bool IsEnabled [get, set]
 Enabled Components are managed by their corresponding Komodo.Core.ECS.Systems.ISystem, otherwise the Component is ignored. More...
 
bool IsInitialized [get, set]
 Uninitialized Components are initialized by their corresponding Komodo.Core.ECS.Systems.ISystem, otherwise the Component is initialized on the next Komodo.Core.ECS.Systems.ISystem.Initialize, Komodo.Core.ECS.Systems.ISystem.PreUpdate, or Komodo.Core.ECS.Systems.ISystem.PostUpdate methods. More...
 
Entity Parent [get, set]
 Each Component belongs to a Komodo.Core.ECS.Entities.Entity and maintains a reference to the parent Komodo.Core.ECS.Entities.Entity. More...
 
Vector3 Position [get, set]
 Each Component has a position relative to their Parent. More...
 
Vector3?? WorldPosition [get]
 The sum of Position and the Parent's Komodo.Core.ECS.Entities.Entity.Position, representing the Component's position in world space. More...
 
Vector3?? Rotation [get, set]
 Derived from the Parent's Komodo.Core.ECS.Entities.Entity.Rotation. More...
 
Matrix?? RotationMatrix [get]
 Derived from the Parent's Komodo.Core.ECS.Entities.Entity.RotationMatrix. More...
 
Quaternion?? RotationQuaternion [get]
 Derived from the Parent's Komodo.Core.ECS.Entities.Entity.RotationQuaternion. More...
 
Vector3?? Scale [get, set]
 Derived from the Parent's Komodo.Core.ECS.Entities.Entity.Scale. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Komodo.Core.ECS.Components.Component
 Component (bool isEnabled=true, Entity parent=null)
 

Detailed Description

Represents any 3D model to be drawn in a Komodo.Core.ECS.Systems.Render3DSystem

Constructor & Destructor Documentation

◆ Drawable3DComponent() [1/2]

Komodo.Core.ECS.Components.Drawable3DComponent.Drawable3DComponent ( Model  model)

Creates a Drawable3DComponent with a given Komodo.Core.Engine.Graphics.Model.

Parameters
modelModel reference containing the raw data of the 3D model.

◆ Drawable3DComponent() [2/2]

Komodo.Core.ECS.Components.Drawable3DComponent.Drawable3DComponent ( string  modelPath)

Creates a Drawable3DComponent with a filepath to a compiled Microsoft.Xna.Framework.Graphics.Model content file.

The Microsoft.Xna.Framework.Graphics.Model will be loaded from disk once the relevant Komodo.Core.ECS.Systems.Render3DSystem.Initialize, Komodo.Core.ECS.Systems.Render3DSystem.PreUpdate, or Komodo.Core.ECS.Systems.Render3DSystem.PostUpdate is called.

Parameters
modelPathFile path to a compiled Microsoft.Xna.Framework.Graphics.Model content file.

Property Documentation

◆ BoundingBox

BoundingBox Komodo.Core.ECS.Components.Drawable3DComponent.BoundingBox
get

Provides a Microsoft.Xna.Framework.BoundingBox representing the bounds of the model.

◆ Depth

float Komodo.Core.ECS.Components.Drawable3DComponent.Depth
get

Z dimensional extremity.

◆ DiffuseColor

Color Komodo.Core.ECS.Components.Drawable3DComponent.DiffuseColor
getset

Microsoft.Xna.Framework.Color to tint the entire Komodo.Core.Engine.Graphics.Model with.

◆ Height

float Komodo.Core.ECS.Components.Drawable3DComponent.Height
get

Y dimensional extremity.

◆ ModelData

Model Komodo.Core.ECS.Components.Drawable3DComponent.ModelData
getset

Raw model data loaded from disk.

◆ ModelPath

string Komodo.Core.ECS.Components.Drawable3DComponent.ModelPath
getset

◆ Texture

Texture Komodo.Core.ECS.Components.Drawable3DComponent.Texture
getset

Texture to be applied to the Komodo.Core.Engine.Graphics.Model surface.

◆ TexturePath

string Komodo.Core.ECS.Components.Drawable3DComponent.TexturePath
getset

Path to texture to be applied to the Komodo.Core.Engine.Graphics.Model surface.

Will only be read on Komodo.Core.ECS.System.Render3DSystem.Initialize. Will only be used if Texture is null.

◆ Width

float Komodo.Core.ECS.Components.Drawable3DComponent.Width
get

X dimensional extremity.