Search Results for

    Show / Hide Table of Contents

    Class ModelLOD

    Represents single Level Of Detail for the model. Contains a collection of the meshes.

    Inheritance
    System.Object
    Object
    ModelLODBase
    ModelLOD
    Inherited Members
    ModelLODBase.GetMesh(Int32)
    ModelLODBase.GetMeshes(MeshBase[])
    ModelLODBase.ScreenSize
    ModelLODBase.LODIndex
    ModelLODBase.Box
    Object.__unmanagedPtr
    Object.__internalId
    Object.Finalize()
    Object.As<T>()
    Object.NewValue(Type)
    Object.New(String)
    Object.Find<T>(Guid, Boolean)
    Object.Find(Guid, Type, Boolean)
    Object.TryFind<T>(Guid)
    Object.TryFind(Guid, Type)
    Object.Destroy(Object, Single)
    Object.DestroyNow(Object)
    Object.Destroy<T>(T, Single)
    Object.Equals(Object)
    Object.GetUnmanagedPtr(Object)
    Object.GetUnmanagedInterface(Object, Type)
    Object.FromUnmanagedPtr(IntPtr)
    Object.MapObjectID(Guid)
    Object.RemapObjectID(Guid)
    Object.GetHashCode()
    Object.ID
    Object.TypeName
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [Unmanaged]
    public class ModelLOD : ModelLODBase

    Constructors

    ModelLOD()

    Initializes a new instance of the ModelLOD.

    Declaration
    public ModelLOD()

    Properties

    Meshes

    The meshes array.

    Declaration
    [Unmanaged]
    public Mesh[] Meshes { get; }
    Property Value
    Mesh[]

    VertexCount

    Gets the vertex count for this model LOD level.

    Declaration
    [Unmanaged]
    public int VertexCount { get; }
    Property Value
    System.Int32

    Methods

    Draw(ref RenderContext, MaterialBase, ref Matrix, StaticFlags, Boolean, DrawPass, Single, SByte)

    Draws the meshes from the model LOD.

    Declaration
    [Unmanaged]
    public void Draw(ref RenderContext renderContext, MaterialBase material, ref Matrix world, StaticFlags flags, bool receiveDecals = true, DrawPass drawModes, float perInstanceRandom = 0F, sbyte sortOrder = 0)
    Parameters
    RenderContext renderContext

    The rendering context.

    MaterialBase material

    The material to use for rendering.

    Matrix world

    The world transformation of the model.

    StaticFlags flags

    The object static flags.

    System.Boolean receiveDecals

    True if rendered geometry can receive decals, otherwise false.

    DrawPass drawModes

    The draw passes to use for rendering this object.

    System.Single perInstanceRandom

    The random per-instance value (normalized to range 0-1).

    System.SByte sortOrder

    Object sorting key.

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.DeepClone<T>(T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat