22 #ifndef INCLUDED_MODELDEF
23 #define INCLUDED_MODELDEF
216 const size_t* blendIndices,
223 static void SkinPointsAndNormals_SSE(
228 const size_t* blendIndices,
u8 m_BoneIndex
Index of parent bone to which this prop point is relative, if any.
CQuaternion m_Rotation
Rotation of the prop model that will be attached at this point.
Describes the position of a prop point within its parent model.
RenderDataMap m_RenderData
bool operator==(const SVertexBlend &o) const
SModelVertex * m_pVertices
SModelVertex * GetVertices() const
size_t GetNumBones() const
virtual ~CModelDefRPrivate()
std::vector< SPropPoint > m_PropPoints
static CVector3D SkinNormal(const SModelVertex &vtx, const CMatrix3D newPoseMatrices[])
Transform the given vertex's normal from the bind pose into the new pose.
size_t GetNumVertices() const
CBoneState * GetBones() const
static void SkinPointsAndNormals(size_t numVertices, const VertexArrayIterator< CVector3D > &Position, const VertexArrayIterator< CVector3D > &Normal, const SModelVertex *vertices, const size_t *blendIndices, const CMatrix3D newPoseMatrices[])
Transform vertices' positions and normals.
CMatrix3D * GetInverseBindBoneMatrices()
static CModelDef * Load(const VfsPath &filename, const VfsPath &name)
Loads a PMD file.
static CVector3D SkinPoint(const SModelVertex &vtx, const CMatrix3D newPoseMatrices[])
Transform the given vertex's position from the bind pose into the new pose.
size_t GetNumBlends() const
CStr m_Name
Name of the prop point.
void SetRenderData(const void *key, CModelDefRPrivate *data)
Register renderer private data.
CMatrix3D * m_InverseBindBoneMatrices
void BlendBoneMatrices(CMatrix3D boneMatrices[])
Blend bone matrices together to fill bone palette.
CMatrix3D m_Transform
Object to parent space transformation.
std::map< const void *, CModelDefRPrivate * > RenderDataMap
static void Save(const VfsPath &filename, const CModelDef *mdef)
SModelFace * GetFaces() const
const SPropPoint * FindPropPoint(const char *name) const
CVector3D m_Position
Position of the point within the parent model, relative to either the parent model's origin or one of...
size_t * GetBlendIndices() const
size_t GetNumFaces() const
const VfsPath & GetName() const
CModelDefRPrivate * GetRenderData(const void *key) const
size_t GetNumUVsPerVertex() const
SVertexBlend * GetBlends() const
std::vector< float > m_UVs