M&B: Bannerlord 1.2.10
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Engine.MetaMesh Class Referencesealed

Inherits TaleWorlds.Engine.GameEntityComponent.

Public Member Functions

int GetLodMaskForMeshAtIndex (int index)
 
int GetTotalGpuSize ()
 
int RemoveMeshesWithTag (string tag)
 
int RemoveMeshesWithoutTag (string tag)
 
int GetMeshCountWithTag (string tag)
 
bool HasVertexBufferOrEditDataOrPackageItem ()
 
bool HasAnyGeneratedLods ()
 
bool HasAnyLods ()
 
void CopyTo (MetaMesh res, bool copyMeshes=true)
 
void ClearMeshesForOtherLods (int lodToKeep)
 
void ClearMeshesForLod (int lodToClear)
 
void ClearMeshesForLowerLods (int lodToClear)
 
void ClearMeshes ()
 
void SetNumLods (int lodToClear)
 
MetaMesh CreateCopy ()
 
void AddMesh (Mesh mesh)
 
void AddMesh (Mesh mesh, uint lodLevel)
 
void AddMetaMesh (MetaMesh metaMesh)
 
void SetCullMode (MBMeshCullingMode cullMode)
 
void AddMaterialShaderFlag (String materialShaderFlag)
 
void MergeMultiMeshes (MetaMesh metaMesh)
 
void AssignClothBodyFrom (MetaMesh metaMesh)
 
void BatchMultiMeshes (MetaMesh metaMesh)
 
bool HasClothData ()
 
void BatchMultiMeshesMultiple (List< MetaMesh > metaMeshes)
 
void ClearEditData ()
 
Mesh GetMeshAtIndex (int meshIndex)
 
Mesh GetFirstMeshWithTag (string tag)
 
uint GetFactor1 ()
 
void SetGlossMultiplier (float value)
 
uint GetFactor2 ()
 
void SetFactor1Linear (uint linearFactorColor1)
 
void SetFactor2Linear (uint linearFactorColor2)
 
void SetFactor1 (uint factorColor1)
 
void SetFactor2 (uint factorColor2)
 
void SetVectorArgument (float vectorArgument0, float vectorArgument1, float vectorArgument2, float vectorArgument3)
 
void SetVectorArgument2 (float vectorArgument0, float vectorArgument1, float vectorArgument2, float vectorArgument3)
 
Vec3 GetVectorArgument2 ()
 
void SetMaterial (Material material)
 
void SetLodBias (int lodBias)
 
void SetBillboarding (BillboardType billboard)
 
void UseHeadBoneFaceGenScaling (Skeleton skeleton, sbyte headLookDirectionBoneIndex, MatrixFrame frame)
 
void DrawTextWithDefaultFont (string text, Vec2 textPositionMin, Vec2 textPositionMax, Vec2 size, uint color, TextFlags flags)
 
void PreloadForRendering ()
 
int CheckResources ()
 
void PreloadShaders (bool useTableau, bool useTeamColor)
 
void RecomputeBoundingBox (bool recomputeMeshes)
 
void AddEditDataUser ()
 
void ReleaseEditDataUser ()
 
void SetEditDataPolicy (EditDataPolicy policy)
 
MatrixFrame Fit ()
 
BoundingBox GetBoundingBox ()
 
VisibilityMaskFlags GetVisibilityMask ()
 
void SetVisibilityMask (VisibilityMaskFlags visibilityMask)
 
string GetName ()
 
void SetContourState (bool alwaysVisible)
 
void SetContourColor (uint color)
 
void SetMaterialToSubMeshesWithTag (Material bodyMaterial, string tag)
 
void SetFactorColorToSubMeshesWithTag (uint color, string tag)
 
- Public Member Functions inherited from TaleWorlds.Engine.GameEntityComponent
GameEntity GetEntity ()
 
virtual MetaMesh GetFirstMetaMesh ()
 

Static Public Member Functions

static MetaMesh CreateMetaMesh (string name=null)
 
static MetaMesh GetCopy (string metaMeshName, bool showErrors=true, bool mayReturnNull=false)
 
static void CheckMetaMeshExistence (string metaMeshName, int lod_count_check)
 
static MetaMesh GetMorphedCopy (string metaMeshName, float morphTarget, bool showErrors)
 
static void GetAllMultiMeshes (ref List< MetaMesh > multiMeshList)
 
static MetaMesh GetMultiMesh (string name)
 

Properties

bool IsValid [get]
 
int MeshCount [get]
 
MatrixFrame Frame [get, set]
 
Vec3 VectorUserData [get, set]
 

Member Function Documentation

◆ CreateMetaMesh()

static MetaMesh TaleWorlds.Engine.MetaMesh.CreateMetaMesh ( string name = null)
static

◆ GetLodMaskForMeshAtIndex()

int TaleWorlds.Engine.MetaMesh.GetLodMaskForMeshAtIndex ( int index)

◆ GetTotalGpuSize()

int TaleWorlds.Engine.MetaMesh.GetTotalGpuSize ( )

◆ RemoveMeshesWithTag()

int TaleWorlds.Engine.MetaMesh.RemoveMeshesWithTag ( string tag)

◆ RemoveMeshesWithoutTag()

int TaleWorlds.Engine.MetaMesh.RemoveMeshesWithoutTag ( string tag)

◆ GetMeshCountWithTag()

int TaleWorlds.Engine.MetaMesh.GetMeshCountWithTag ( string tag)

◆ HasVertexBufferOrEditDataOrPackageItem()

bool TaleWorlds.Engine.MetaMesh.HasVertexBufferOrEditDataOrPackageItem ( )

◆ HasAnyGeneratedLods()

bool TaleWorlds.Engine.MetaMesh.HasAnyGeneratedLods ( )

◆ HasAnyLods()

bool TaleWorlds.Engine.MetaMesh.HasAnyLods ( )

◆ GetCopy()

static MetaMesh TaleWorlds.Engine.MetaMesh.GetCopy ( string metaMeshName,
bool showErrors = true,
bool mayReturnNull = false )
static

◆ CopyTo()

void TaleWorlds.Engine.MetaMesh.CopyTo ( MetaMesh res,
bool copyMeshes = true )

◆ ClearMeshesForOtherLods()

void TaleWorlds.Engine.MetaMesh.ClearMeshesForOtherLods ( int lodToKeep)

◆ ClearMeshesForLod()

void TaleWorlds.Engine.MetaMesh.ClearMeshesForLod ( int lodToClear)

◆ ClearMeshesForLowerLods()

void TaleWorlds.Engine.MetaMesh.ClearMeshesForLowerLods ( int lodToClear)

◆ ClearMeshes()

void TaleWorlds.Engine.MetaMesh.ClearMeshes ( )

◆ SetNumLods()

void TaleWorlds.Engine.MetaMesh.SetNumLods ( int lodToClear)

◆ CheckMetaMeshExistence()

static void TaleWorlds.Engine.MetaMesh.CheckMetaMeshExistence ( string metaMeshName,
int lod_count_check )
static

◆ GetMorphedCopy()

static MetaMesh TaleWorlds.Engine.MetaMesh.GetMorphedCopy ( string metaMeshName,
float morphTarget,
bool showErrors )
static

◆ CreateCopy()

MetaMesh TaleWorlds.Engine.MetaMesh.CreateCopy ( )

◆ AddMesh() [1/2]

void TaleWorlds.Engine.MetaMesh.AddMesh ( Mesh mesh)

◆ AddMesh() [2/2]

void TaleWorlds.Engine.MetaMesh.AddMesh ( Mesh mesh,
uint lodLevel )

◆ AddMetaMesh()

void TaleWorlds.Engine.MetaMesh.AddMetaMesh ( MetaMesh metaMesh)

◆ SetCullMode()

void TaleWorlds.Engine.MetaMesh.SetCullMode ( MBMeshCullingMode cullMode)

◆ AddMaterialShaderFlag()

void TaleWorlds.Engine.MetaMesh.AddMaterialShaderFlag ( String materialShaderFlag)

◆ MergeMultiMeshes()

void TaleWorlds.Engine.MetaMesh.MergeMultiMeshes ( MetaMesh metaMesh)

◆ AssignClothBodyFrom()

void TaleWorlds.Engine.MetaMesh.AssignClothBodyFrom ( MetaMesh metaMesh)

◆ BatchMultiMeshes()

void TaleWorlds.Engine.MetaMesh.BatchMultiMeshes ( MetaMesh metaMesh)

◆ HasClothData()

bool TaleWorlds.Engine.MetaMesh.HasClothData ( )

◆ BatchMultiMeshesMultiple()

void TaleWorlds.Engine.MetaMesh.BatchMultiMeshesMultiple ( List< MetaMesh > metaMeshes)

◆ ClearEditData()

void TaleWorlds.Engine.MetaMesh.ClearEditData ( )

◆ GetMeshAtIndex()

Mesh TaleWorlds.Engine.MetaMesh.GetMeshAtIndex ( int meshIndex)

◆ GetFirstMeshWithTag()

Mesh TaleWorlds.Engine.MetaMesh.GetFirstMeshWithTag ( string tag)

◆ GetFactor1()

uint TaleWorlds.Engine.MetaMesh.GetFactor1 ( )

◆ SetGlossMultiplier()

void TaleWorlds.Engine.MetaMesh.SetGlossMultiplier ( float value)

◆ GetFactor2()

uint TaleWorlds.Engine.MetaMesh.GetFactor2 ( )

◆ SetFactor1Linear()

void TaleWorlds.Engine.MetaMesh.SetFactor1Linear ( uint linearFactorColor1)

◆ SetFactor2Linear()

void TaleWorlds.Engine.MetaMesh.SetFactor2Linear ( uint linearFactorColor2)

◆ SetFactor1()

void TaleWorlds.Engine.MetaMesh.SetFactor1 ( uint factorColor1)

◆ SetFactor2()

void TaleWorlds.Engine.MetaMesh.SetFactor2 ( uint factorColor2)

◆ SetVectorArgument()

void TaleWorlds.Engine.MetaMesh.SetVectorArgument ( float vectorArgument0,
float vectorArgument1,
float vectorArgument2,
float vectorArgument3 )

◆ SetVectorArgument2()

void TaleWorlds.Engine.MetaMesh.SetVectorArgument2 ( float vectorArgument0,
float vectorArgument1,
float vectorArgument2,
float vectorArgument3 )

◆ GetVectorArgument2()

Vec3 TaleWorlds.Engine.MetaMesh.GetVectorArgument2 ( )

◆ SetMaterial()

void TaleWorlds.Engine.MetaMesh.SetMaterial ( Material material)

◆ SetLodBias()

void TaleWorlds.Engine.MetaMesh.SetLodBias ( int lodBias)

◆ SetBillboarding()

void TaleWorlds.Engine.MetaMesh.SetBillboarding ( BillboardType billboard)

◆ UseHeadBoneFaceGenScaling()

void TaleWorlds.Engine.MetaMesh.UseHeadBoneFaceGenScaling ( Skeleton skeleton,
sbyte headLookDirectionBoneIndex,
MatrixFrame frame )

◆ DrawTextWithDefaultFont()

void TaleWorlds.Engine.MetaMesh.DrawTextWithDefaultFont ( string text,
Vec2 textPositionMin,
Vec2 textPositionMax,
Vec2 size,
uint color,
TextFlags flags )

◆ PreloadForRendering()

void TaleWorlds.Engine.MetaMesh.PreloadForRendering ( )

◆ CheckResources()

int TaleWorlds.Engine.MetaMesh.CheckResources ( )

◆ PreloadShaders()

void TaleWorlds.Engine.MetaMesh.PreloadShaders ( bool useTableau,
bool useTeamColor )

◆ RecomputeBoundingBox()

void TaleWorlds.Engine.MetaMesh.RecomputeBoundingBox ( bool recomputeMeshes)

◆ AddEditDataUser()

void TaleWorlds.Engine.MetaMesh.AddEditDataUser ( )

◆ ReleaseEditDataUser()

void TaleWorlds.Engine.MetaMesh.ReleaseEditDataUser ( )

◆ SetEditDataPolicy()

void TaleWorlds.Engine.MetaMesh.SetEditDataPolicy ( EditDataPolicy policy)

◆ Fit()

MatrixFrame TaleWorlds.Engine.MetaMesh.Fit ( )

◆ GetBoundingBox()

BoundingBox TaleWorlds.Engine.MetaMesh.GetBoundingBox ( )

◆ GetVisibilityMask()

VisibilityMaskFlags TaleWorlds.Engine.MetaMesh.GetVisibilityMask ( )

◆ SetVisibilityMask()

void TaleWorlds.Engine.MetaMesh.SetVisibilityMask ( VisibilityMaskFlags visibilityMask)

◆ GetName()

string TaleWorlds.Engine.MetaMesh.GetName ( )

◆ GetAllMultiMeshes()

static void TaleWorlds.Engine.MetaMesh.GetAllMultiMeshes ( ref List< MetaMesh > multiMeshList)
static

◆ GetMultiMesh()

static MetaMesh TaleWorlds.Engine.MetaMesh.GetMultiMesh ( string name)
static

◆ SetContourState()

void TaleWorlds.Engine.MetaMesh.SetContourState ( bool alwaysVisible)

◆ SetContourColor()

void TaleWorlds.Engine.MetaMesh.SetContourColor ( uint color)

◆ SetMaterialToSubMeshesWithTag()

void TaleWorlds.Engine.MetaMesh.SetMaterialToSubMeshesWithTag ( Material bodyMaterial,
string tag )

◆ SetFactorColorToSubMeshesWithTag()

void TaleWorlds.Engine.MetaMesh.SetFactorColorToSubMeshesWithTag ( uint color,
string tag )

Property Documentation

◆ IsValid

bool TaleWorlds.Engine.MetaMesh.IsValid
get

◆ MeshCount

int TaleWorlds.Engine.MetaMesh.MeshCount
get

◆ Frame

MatrixFrame TaleWorlds.Engine.MetaMesh.Frame
getset

◆ VectorUserData

Vec3 TaleWorlds.Engine.MetaMesh.VectorUserData
getset