#include "Md3TriMesh.h"
#include "../3d/Point2d.h" // class Point2d;
#include "../3d/Point3d.h" // class Point3d;
#include "../3d/Vector3d.h" // class Vector3d;
#include "../3d/Matrix3d.h" // class Matrix3d;
#include "../3d/Matrix4d.h" // class Matrix4d;
#include "../3d/TriFace.h" // class TriFace;
#include "../3d/RendGL.h" // Get access to rendering gl functions;
// classmetadata initialization:
MetaClass Md3TriMesh :: classInst ( STR_CLASSMD3TRIMESH, &Object :: classInst );
/************************************************************************\
## class Md3TriMesh ##
\************************************************************************/
Md3TriMesh ::Md3TriMesh ( const char * meshName ):
Object ( meshName ),
TriMesh3d (),
SkinnedObject ()
{
metaClass = &classInst;
}
Md3TriMesh :: Md3TriMesh ( const TriMesh3d & objMesh, Point2d * meshTexCoords,
Texture * meshSkin, const char * meshName ):
Object ( meshName ),
TriMesh3d ( objMesh ),
SkinnedObject ( objMesh.getNumVertices (), meshTexCoords, meshSkin )
{
metaClass = &classInst;
}
Md3TriMesh :: Md3TriMesh ( int meshNumVertices, int meshNumFaces,
Point3d * meshVertices, TriFace * meshFaces,
Point2d * meshTexCoords, Vector3d * meshNormals,
Texture * meshSkin, const char * meshName ):
Object ( meshName ),
TriMesh3d ( meshNumVertices, meshNumFaces, meshVertices, meshFaces, meshNormals ),
SkinnedObject ( meshNumVertices, meshTexCoords, meshSkin )
{
metaClass = &classInst;
}
| Комментировать | « Пред. запись — К дневнику — След. запись » | Страницы: [1] [Новые] |