Class GpuModel¶
Namespace: Apogee.Rendering
Assembly: Apogee.Rendering.dll
A
public sealed class GpuModel : IDisposable
Inheritance¶
Implements¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Properties¶
BoundsMax¶
public Vector3 BoundsMax { get; }
Property Value¶
BoundsMin¶
The box around the model, in its own space.
public Vector3 BoundsMin { get; }
Property Value¶
Lights¶
Point and spot lights the model came with, in its own space.
public IReadOnlyList<LightData> Lights { get; }
Property Value¶
MeshCount¶
The number of mesh instances: the draws one placement of the model makes.
public int MeshCount { get; }
Property Value¶
Name¶
public string Name { get; }
Property Value¶
SunColor¶
public Vector3 SunColor { get; }
Property Value¶
SunDirection¶
The direction toward the model's sun (when it has a directional light), and its color times illuminance (zero when it has none).
public Vector3? SunDirection { get; }
Property Value¶
Methods¶
Dispose()¶
Waits for the GPU to finish with the model, then frees it. Draw frames that use a model before disposing it.
public void Dispose()