CSEngine
|
Public Member Functions | |
RESOURCE_DEFINE_CONSTRUCTOR (MeshSurface) | |
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) |
void | SetValue (std::string name_str, Arguments value) override |
std::string | PrintValue () const override |
![]() | |
SISurface (std::string &&classType) | |
![]() | |
SResource (std::string classType) | |
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 |
![]() | |
SObject (bool isRegister) | |
virtual void | SetUndestroyable (bool enable) |
std::string | GetHash () const |
![]() | |
![]() | |
ReflectionObject (std::string type) | |
void | SetClassType (std::string type) |
const char * | GetClassType () const |
bool | IsSameClass (const char *classType) 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) |
![]() | |
template<class T > | |
static T * | Create (const std::string &name) |
static SResource * | Create (const std::string &name, const std::string &classType) |
template<class T > | |
static T * | Create (const AssetMgr::AssetReference *asset) |
static SResource * | Create (const AssetMgr::AssetReference *asset, const std::string &classType) |
template<class T > | |
static T * | Get (std::string name) |
static SResource * | Get (std::string &name) |
![]() | |
static ReflectionObject * | NewObject (const std::string &name) |
Protected Member Functions | |
void | Init (const AssetMgr::AssetReference *asset) override |
![]() | |
![]() |
Additional Inherited Members | |
![]() | |
GLMeshID | m_meshId |
![]() | |
typedef std::vector< std::string > | Arguments |
![]() | |
std::string | m_hash |
![]() | |
std::string | m_class |
Definition at line 9 of file MeshSurface.h.
|
overridevirtual |
Reimplemented from CSE::SObject.
Definition at line 190 of file MeshSurface.cpp.
|
overridevirtual |
Implements CSE::SObject.
Definition at line 181 of file MeshSurface.cpp.
|
static |
Definition at line 157 of file MeshSurface.cpp.
|
overridevirtual |
Implements CSE::SISurface.
Definition at line 125 of file MeshSurface.cpp.
Definition at line 139 of file MeshSurface.cpp.
|
overridevirtual |
Implements CSE::SISurface.
Definition at line 130 of file MeshSurface.cpp.
|
overridevirtual |
Implements CSE::SISurface.
Definition at line 119 of file MeshSurface.cpp.
|
overridevirtual |
Implements CSE::SISurface.
Definition at line 111 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.
bool MeshSurface::HasJoint | ( | ) | const |
Definition at line 135 of file MeshSurface.cpp.
|
overrideprotectedvirtual |
Implements CSE::SResource.
Definition at line 194 of file MeshSurface.cpp.
Definition at line 175 of file MeshSurface.cpp.
bool MeshSurface::MakeIndices | ( | int | sizeIndic, |
int * | indices ) |
Definition at line 92 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.
|
overridevirtual |
Implements CSE::VariableBinder.
Definition at line 215 of file MeshSurface.cpp.
|
overridevirtual |
Used to get serialized values. All classes that inherit from VariableBinder will unconditionally call this function first during initialization.
name_str | Name of values |
value | Serialized values |
Implements CSE::VariableBinder.
Definition at line 212 of file MeshSurface.cpp.