Class Drawable3D
- Namespace
- AstraEngine.View3D
- Assembly
- AstraEngine.View3D.dll
Represents a 3D component that can be drawn to a screen. An Entity that is Drawable is required to have a Position3D component. During initialization, if no Position3D is found, a default position is attached.
public abstract class Drawable3D : Component
- Inheritance
-
Drawable3D
- Derived
- Inherited Members
Properties
Position
The Position of attached Entity.
public Position3D Position { get; }
Property Value
Methods
Draw(ICamera3D)
Renders this Drawable3D.
public abstract void Draw(ICamera3D camera)
Parameters
cameraICamera3DThe camera to use
Initialize()
Initializes Position. If the associated Entity has a Position it is used otherwise, initializes to (0, 0, 0).
public override void Initialize()