CSEngine
|
Public Member Functions | |
MeshSurface (int sizeVert, float *vertices, float *normals) | |
MeshSurface (int sizeVert, float *vertices, float *normals, float *texCoords) | |
int | GetVertexCount () const override |
int | GetLineIndexCount () const override |
int | GetTriangleIndexCount () const override |
void | GenerateVertices (std::vector< float > &vertices, unsigned char flags) const override |
void | GenerateLineIndices (std::vector< unsigned short > &indices) const override |
void | GenerateTriangleIndices (std::vector< unsigned short > &indices) const override |
bool | HasJoint () const |
void | Exterminate () override |
void | Destroy () override |
bool | MakeVertices (int sizeVert, float *vertices, float *normals, float *texCoords, float *weights, short *jointIds) |
bool | MakeIndices (int sizeIndic, int *indices) |
Public Member Functions inherited from CSE::SResource | |
SResource (bool isRegister) | |
SResource (const SResource *resource, bool isRegister) | |
void | SetName (std::string name) |
void | SetAbsoluteID (std::string id) |
std::string | GetName () const |
std::string | GetAbsoluteID () const |
AssetMgr::AssetReference * | GetAssetReference (std::string hash="") const |
void | LinkResource (AssetMgr::AssetReference *asset) |
void | LinkResource (std::string name) |
void | SetHash (std::string &hash) override |
Public Member Functions inherited from CSE::SObject | |
SObject (bool isRegister) | |
virtual void | SetUndestroyable (bool enable) |
virtual void | __FORCE_DESTROY__ () |
virtual std::string | GenerateMeta () |
std::string | GetHash () const |
Static Public Member Functions | |
static vec3 | GenerateTopTriangle (const vec3 &v0, const vec3 &v1, const vec3 &v2) |
static vec3 | GenerateBottomTriangle (const vec3 &v0, const vec3 &v1, const vec3 &v2) |
static vec3 | LerpFilter (const vec3 &v0, const vec3 &v1, float kCoff) |
Static Public Member Functions inherited from CSE::SResource | |
template<class T > | |
static T * | Create (const std::string &name) |
template<class T > | |
static T * | Create (const AssetMgr::AssetReference *asset) |
template<class T > | |
static T * | Get (std::string name) |
Protected Member Functions | |
void | Init (const AssetMgr::AssetReference *asset) override |
Additional Inherited Members | |
Public Attributes inherited from CSE::SISurface | |
GLMeshID | m_meshId |
Protected Attributes inherited from CSE::SObject | |
std::string | m_hash |
Definition at line 9 of file MeshSurface.h.
MeshSurface::MeshSurface | ( | int | sizeVert, |
float * | vertices, | ||
float * | normals | ||
) |
Definition at line 13 of file MeshSurface.cpp.
MeshSurface::MeshSurface | ( | int | sizeVert, |
float * | vertices, | ||
float * | normals, | ||
float * | texCoords | ||
) |
Definition at line 19 of file MeshSurface.cpp.
|
overridevirtual |
Reimplemented from CSE::SObject.
Definition at line 186 of file MeshSurface.cpp.
|
overridevirtual |
Implements CSE::SObject.
Definition at line 177 of file MeshSurface.cpp.
|
static |
Definition at line 153 of file MeshSurface.cpp.
|
overridevirtual |
Implements CSE::SISurface.
Definition at line 121 of file MeshSurface.cpp.
Definition at line 135 of file MeshSurface.cpp.
|
overridevirtual |
Implements CSE::SISurface.
Definition at line 126 of file MeshSurface.cpp.
|
overridevirtual |
Implements CSE::SISurface.
Definition at line 115 of file MeshSurface.cpp.
|
overridevirtual |
Implements CSE::SISurface.
Definition at line 107 of file MeshSurface.cpp.
|
overridevirtual |
Implements CSE::SISurface.
Definition at line 111 of file MeshSurface.cpp.
|
overridevirtual |
Implements CSE::SISurface.
Definition at line 103 of file MeshSurface.cpp.
bool MeshSurface::HasJoint | ( | ) | const |
Definition at line 131 of file MeshSurface.cpp.
|
overrideprotectedvirtual |
Implements CSE::SResource.
Definition at line 190 of file MeshSurface.cpp.
Definition at line 171 of file MeshSurface.cpp.
bool MeshSurface::MakeIndices | ( | int | sizeIndic, |
int * | indices | ||
) |
Definition at line 88 of file MeshSurface.cpp.
bool MeshSurface::MakeVertices | ( | int | sizeVert, |
float * | vertices, | ||
float * | normals, | ||
float * | texCoords, | ||
float * | weights, | ||
short * | jointIds | ||
) |
Definition at line 28 of file MeshSurface.cpp.