Class Mesh
- Namespace
- TaleWorlds.Engine
- Assembly
- TaleWorlds.Engine.dll
[EngineClass("rglMesh")]
public sealed class Mesh : Resource
- Inheritance
-
Mesh
- Inherited Members
Properties
Billboard
public BillboardType Billboard { get; set; }
Property Value
Color
public uint Color { get; set; }
Property Value
Color2
public uint Color2 { get; set; }
Property Value
CullingMode
public MBMeshCullingMode CullingMode { set; }
Property Value
EditDataFaceCornerCount
public int EditDataFaceCornerCount { get; }
Property Value
MorphTime
public float MorphTime { set; }
Property Value
Name
public string Name { get; set; }
Property Value
VisibilityMask
public VisibilityMaskFlags VisibilityMask { get; set; }
Property Value
Methods
AddEditDataUser()
public void AddEditDataUser()
AddFace(int, int, int, UIntPtr)
public int AddFace(int patchNode0, int patchNode1, int patchNode2, UIntPtr lockHandle)
Parameters
Returns
AddFaceCorner(Vec3, Vec3, Vec2, uint, UIntPtr)
public int AddFaceCorner(Vec3 position, Vec3 normal, Vec2 uvCoord, uint color, UIntPtr lockHandle)
Parameters
Returns
AddMesh(string, MatrixFrame)
public void AddMesh(string meshResourceName, MatrixFrame meshFrame)
Parameters
meshResourceName
stringmeshFrame
MatrixFrame
AddMesh(Mesh, MatrixFrame)
public void AddMesh(Mesh mesh, MatrixFrame meshFrame)
Parameters
mesh
MeshmeshFrame
MatrixFrame
AddTriangle(Vec3, Vec3, Vec3, Vec2, Vec2, Vec2, uint, UIntPtr)
public void AddTriangle(Vec3 p1, Vec3 p2, Vec3 p3, Vec2 uv1, Vec2 uv2, Vec2 uv3, uint color, UIntPtr lockHandle)
Parameters
AddTriangleWithVertexColors(Vec3, Vec3, Vec3, Vec2, Vec2, Vec2, uint, uint, uint, UIntPtr)
public void AddTriangleWithVertexColors(Vec3 p1, Vec3 p2, Vec3 p3, Vec2 uv1, Vec2 uv2, Vec2 uv3, uint c1, uint c2, uint c3, UIntPtr lockHandle)
Parameters
ClearMesh()
public void ClearMesh()
ComputeNormals()
public void ComputeNormals()
ComputeTangents()
public void ComputeTangents()
CreateCopy()
public Mesh CreateCopy()
Returns
CreateMesh(bool)
public static Mesh CreateMesh(bool editable = true)
Parameters
editable
bool
Returns
CreateMeshWithMaterial(Material)
public static Mesh CreateMeshWithMaterial(Material material)
Parameters
material
Material
Returns
DisableContour()
public void DisableContour()
GetBaseMesh()
public Mesh GetBaseMesh()
Returns
GetBoundingBoxHeight()
public float GetBoundingBoxHeight()
Returns
GetBoundingBoxMax()
public Vec3 GetBoundingBoxMax()
Returns
GetBoundingBoxMin()
public Vec3 GetBoundingBoxMin()
Returns
GetBoundingBoxWidth()
public float GetBoundingBoxWidth()
Returns
GetEditDataFaceCornerVertexColor(int)
public uint GetEditDataFaceCornerVertexColor(int index)
Parameters
index
int
Returns
GetFaceCornerCount()
public uint GetFaceCornerCount()
Returns
GetFaceCount()
public uint GetFaceCount()
Returns
GetFromResource(string)
public static Mesh GetFromResource(string meshName)
Parameters
meshName
string
Returns
GetLocalFrame()
public MatrixFrame GetLocalFrame()
Returns
GetMaterial()
public Material GetMaterial()
Returns
GetRandomMeshWithVdecl(int)
public static Mesh GetRandomMeshWithVdecl(int inputLayout)
Parameters
inputLayout
int
Returns
GetSecondMaterial()
public Material GetSecondMaterial()
Returns
HasTag(string)
public bool HasTag(string str)
Parameters
str
string
Returns
HintIndicesDynamic()
public void HintIndicesDynamic()
HintVerticesDynamic()
public void HintVerticesDynamic()
LockEditDataWrite()
public UIntPtr LockEditDataWrite()
Returns
PreloadForRendering()
public void PreloadForRendering()
RecomputeBoundingBox()
public void RecomputeBoundingBox()
ReleaseEditDataUser()
public void ReleaseEditDataUser()
SetAsNotEffectedBySeason()
public void SetAsNotEffectedBySeason()
SetColorAlpha(uint)
public void SetColorAlpha(uint newAlpha)
Parameters
newAlpha
uint
SetColorAndStroke(uint, uint, bool)
public void SetColorAndStroke(uint color, uint strokeColor, bool drawStroke)
Parameters
SetContourColor(Vec3, bool, bool)
public void SetContourColor(Vec3 color, bool alwaysVisible, bool maskMesh)
Parameters
SetEditDataFaceCornerVertexColor(int, uint)
public void SetEditDataFaceCornerVertexColor(int index, uint color)
Parameters
SetEditDataPolicy(EditDataPolicy)
public void SetEditDataPolicy(EditDataPolicy policy)
Parameters
policy
EditDataPolicy
SetExternalBoundingBox(BoundingBox)
public void SetExternalBoundingBox(BoundingBox bbox)
Parameters
bbox
BoundingBox
SetLocalFrame(MatrixFrame)
public void SetLocalFrame(MatrixFrame meshFrame)
Parameters
meshFrame
MatrixFrame
SetMaterial(string)
public void SetMaterial(string newMaterialName)
Parameters
newMaterialName
string
SetMaterial(Material)
public void SetMaterial(Material material)
Parameters
material
Material
SetMeshRenderOrder(int)
public void SetMeshRenderOrder(int renderOrder)
Parameters
renderOrder
int
SetVectorArgument(float, float, float, float)
public void SetVectorArgument(float vectorArgument0, float vectorArgument1, float vectorArgument2, float vectorArgument3)
Parameters
SetVectorArgument2(float, float, float, float)
public void SetVectorArgument2(float vectorArgument0, float vectorArgument1, float vectorArgument2, float vectorArgument3)
Parameters
SetVisibilityMask(VisibilityMaskFlags)
public void SetVisibilityMask(VisibilityMaskFlags visibilityMask)
Parameters
visibilityMask
VisibilityMaskFlags
UnlockEditDataWrite(UIntPtr)
public void UnlockEditDataWrite(UIntPtr handle)
Parameters
handle
UIntPtr
UpdateBoundingBox()
public void UpdateBoundingBox()
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).