18#ifndef INCLUDED_MIKKWRAP
19#define INCLUDED_MIKKWRAP
23#include "third_party/mikktspace/mikktspace.h"
51 static int GetNumFaces(
const SMikkTSpaceContext* pContext);
80 static void GetPosition(
const SMikkTSpaceContext* pContext,
81 float* fvPosOut,
const int iFace,
const int iVert);
89 static void GetNormal(
const SMikkTSpaceContext* pContext,
90 float* fvNormOut,
const int iFace,
const int iVert);
98 static void GetTexCoord(
const SMikkTSpaceContext* pContext,
99 float* fvTexcOut,
const int iFace,
const int iVert);
115 static void SetTSpace(
const SMikkTSpaceContext* pContext,
const float* fvTangent,
116 const float*
UNUSED(fvBiTangent),
const float UNUSED(fMagS),
const float UNUSED(fMagT),
117 const tbool bIsOrientationPreserving,
const int iFace,
const int iVert);
std::shared_ptr< CModelDef > CModelDefPtr
Definition: MeshManager.h:27
Definition: MikktspaceWrap.h:28
static void SetTSpace(const SMikkTSpaceContext *pContext, const float *fvTangent, const float *fvBiTangent, const float fMagS, const float fMagT, const tbool bIsOrientationPreserving, const int iFace, const int iVert)
This function is used to return tangent space results to the application.
Definition: MikktspaceWrap.cpp:93
MikkTSpace(const CModelDefPtr &m, std::vector< float > &v, bool gpuSkinning)
Definition: MikktspaceWrap.cpp:22
static SModelVertex GetVertex(const SMikkTSpaceContext *pContext, const int iFace, const int iVert)
Definition: MikktspaceWrap.cpp:139
std::vector< float > & m_NewVertices
Definition: MikktspaceWrap.h:43
static MikkTSpace * GetUserDataFromContext(const SMikkTSpaceContext *pContext)
Definition: MikktspaceWrap.cpp:134
const CModelDefPtr & m_Model
Definition: MikktspaceWrap.h:41
static void GetNormal(const SMikkTSpaceContext *pContext, float *fvNormOut, const int iFace, const int iVert)
Definition: MikktspaceWrap.cpp:68
SMikkTSpaceInterface m_Interface
Definition: MikktspaceWrap.h:38
static int GetNumFaces(const SMikkTSpaceContext *pContext)
Definition: MikktspaceWrap.cpp:47
static void GetTexCoord(const SMikkTSpaceContext *pContext, float *fvTexcOut, const int iFace, const int iVert)
Definition: MikktspaceWrap.cpp:79
static int GetNumVerticesOfFace(const SMikkTSpaceContext *pContext, const int iFace)
Definition: MikktspaceWrap.cpp:52
static void GetPosition(const SMikkTSpaceContext *pContext, float *fvPosOut, const int iFace, const int iVert)
Definition: MikktspaceWrap.cpp:57
SMikkTSpaceContext m_Context
Definition: MikktspaceWrap.h:39
bool m_GpuSkinning
Definition: MikktspaceWrap.h:45
void Generate()
Definition: MikktspaceWrap.cpp:42
#define UNUSED(param)
mark a function parameter as unused and avoid the corresponding compiler warning.
Definition: code_annotation.h:40
Definition: ModelDef.h:108