OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
MeshObjects::Mesh Class Referencefinal

#include <meshobjects.h>

Public Member Functions

 Mesh ()=default
 
 Mesh (MeshObjects &owner, const StaticMesh &mesh, int32_t version, bool staticDraw)
 
 Mesh (MeshObjects &owner, const StaticMesh &mesh, int32_t texVar, int32_t teethTex, int32_t bodyColor)
 
 Mesh (MeshObjects &owner, const ProtoMesh &mesh, int32_t texVar, int32_t teethTex, int32_t bodyColor, bool staticDraw)
 
 Mesh (Mesh &&other)
 
 ~Mesh ()
 
Meshoperator= (Mesh &&other)
 
void setObjMatrix (const Tempest::Matrix4x4 &mt)
 
void setSkeleton (const Skeleton *sk)
 
void setPose (const Tempest::Matrix4x4 &obj, const Pose &p)
 
void setAsGhost (bool g)
 
void setFatness (float f)
 
void setWind (zenkit::AnimationType m, float intensity)
 
void startMMAnim (std::string_view anim, float intensity, uint64_t timeUntil)
 
bool isEmpty () const
 
size_t nodesCount () const
 
Node node (size_t i) const
 
Bounds bounds () const
 
const ProtoMeshprotoMesh () const
 
const PfxEmitterMeshtoMeshEmitter () const
 

Detailed Description

Definition at line 44 of file meshobjects.h.

Constructor & Destructor Documentation

◆ Mesh() [1/5]

MeshObjects::Mesh::Mesh ( )
default

◆ Mesh() [2/5]

MeshObjects::Mesh::Mesh ( MeshObjects owner,
const StaticMesh mesh,
int32_t  version,
bool  staticDraw 
)

Definition at line 106 of file meshobjects.cpp.

◆ Mesh() [3/5]

MeshObjects::Mesh::Mesh ( MeshObjects owner,
const StaticMesh mesh,
int32_t  texVar,
int32_t  teethTex,
int32_t  bodyColor 
)

Definition at line 121 of file meshobjects.cpp.

◆ Mesh() [4/5]

MeshObjects::Mesh::Mesh ( MeshObjects owner,
const ProtoMesh mesh,
int32_t  texVar,
int32_t  teethTex,
int32_t  bodyColor,
bool  staticDraw 
)

Definition at line 134 of file meshobjects.cpp.

◆ Mesh() [5/5]

MeshObjects::Mesh::Mesh ( MeshObjects::Mesh &&  other)

Definition at line 99 of file meshobjects.cpp.

◆ ~Mesh()

MeshObjects::Mesh::~Mesh ( )

Definition at line 103 of file meshobjects.cpp.

Member Function Documentation

◆ bounds()

Bounds MeshObjects::Mesh::bounds ( ) const

Definition at line 84 of file meshobjects.cpp.

◆ isEmpty()

bool MeshObjects::Mesh::isEmpty ( ) const
inline

Definition at line 62 of file meshobjects.h.

◆ node()

Node MeshObjects::Mesh::node ( size_t  i) const
inline

Definition at line 64 of file meshobjects.h.

◆ nodesCount()

size_t MeshObjects::Mesh::nodesCount ( ) const
inline

Definition at line 63 of file meshobjects.h.

◆ operator=()

MeshObjects::Mesh & MeshObjects::Mesh::operator= ( MeshObjects::Mesh &&  other)

Definition at line 177 of file meshobjects.cpp.

◆ protoMesh()

const ProtoMesh * MeshObjects::Mesh::protoMesh ( ) const
inline

Definition at line 67 of file meshobjects.h.

◆ setAsGhost()

void MeshObjects::Mesh::setAsGhost ( bool  g)

Definition at line 64 of file meshobjects.cpp.

◆ setFatness()

void MeshObjects::Mesh::setFatness ( float  f)

Definition at line 69 of file meshobjects.cpp.

◆ setObjMatrix()

void MeshObjects::Mesh::setObjMatrix ( const Tempest::Matrix4x4 &  mt)

Definition at line 187 of file meshobjects.cpp.

◆ setPose()

void MeshObjects::Mesh::setPose ( const Tempest::Matrix4x4 &  obj,
const Pose p 
)

Definition at line 58 of file meshobjects.cpp.

◆ setSkeleton()

void MeshObjects::Mesh::setSkeleton ( const Skeleton sk)

Definition at line 52 of file meshobjects.cpp.

◆ setWind()

void MeshObjects::Mesh::setWind ( zenkit::AnimationType  m,
float  intensity 
)

Definition at line 74 of file meshobjects.cpp.

◆ startMMAnim()

void MeshObjects::Mesh::startMMAnim ( std::string_view  anim,
float  intensity,
uint64_t  timeUntil 
)

Definition at line 79 of file meshobjects.cpp.

◆ toMeshEmitter()

const PfxEmitterMesh * MeshObjects::Mesh::toMeshEmitter ( ) const

Definition at line 93 of file meshobjects.cpp.


The documentation for this class was generated from the following files: