29 #ifndef __MODEL_LOCAL_H__
30 #define __MODEL_LOCAL_H__
61 virtual const char *
Name()
const;
62 virtual void Print()
const;
63 virtual void List()
const;
64 virtual int Memory()
const;
90 bool LoadASE(
const char *fileName );
91 bool LoadLWO(
const char *fileName );
92 bool LoadFLT(
const char *fileName );
93 bool LoadMA(
const char *filename );
172 virtual void Print()
const;
173 virtual void List()
const;
177 virtual int Memory()
const;
241 virtual void Reset();
297 virtual int Memory()
const;
326 #define MAX_TRAIL_PTS 20
virtual int NumJoints(void) const
virtual ~idRenderModelStatic()
virtual const char * Name() const
virtual const char * GetJointName(jointHandle_t handle) const
struct deformInfo_s * deformInfo
virtual void List() const
virtual float DepthHack() const
bool FindSurfaceWithId(int id, int &surfaceNum)
idList< modelSurface_t > surfaces
void TransformScaledVerts(idDrawVert *verts, const idJointMat *joints, float scale)
virtual jointHandle_t GetJointHandle(const char *name) const
void CalculateBounds(const idJointMat *joints)
virtual const idMD5Joint * GetJoints(void) const
virtual const idMD5Joint * GetJoints(void) const
virtual int Memory() const
virtual idRenderModel * InstantiateDynamicModel(const struct renderEntity_s *ent, const struct viewDef_s *view, idRenderModel *cachedModel)
bool ConvertASEToModelSurfaces(const struct aseModel_s *ase)
virtual void InitFromFile(const char *fileName)
virtual dynamicModel_t IsDynamicModel() const
virtual void List() const
virtual bool IsReloadable() const
bool ConvertLWOToModelSurfaces(const struct st_lwObject *lwo)
virtual void PartialInitFromFile(const char *fileName)
void LerpMeshVertexes(srfTriangles_t *tri, const struct md3Surface_s *surf, const float backlerp, const int frame, const int oldframe) const
virtual dynamicModel_t IsDynamicModel() const
GLenum GLenum GLenum GLenum GLenum scale
void ParseMesh(idLexer &parser, int numJoints, const idJointMat *joints)
idList< idMD5Joint > joints
virtual bool IsLoaded() const
virtual idRenderModel * InstantiateDynamicModel(const struct renderEntity_s *ent, const struct viewDef_s *view, idRenderModel *cachedModel)
idList< idDrawVert > verts
virtual srfTriangles_t * AllocSurfaceTriangles(int numVerts, int numIndexes) const
virtual const modelSurface_t * Surface(int surfaceNum) const
virtual idRenderModel * InstantiateDynamicModel(const struct renderEntity_s *ent, const struct viewDef_s *view, idRenderModel *cachedModel)
bool LoadMA(const char *filename)
virtual dynamicModel_t IsDynamicModel() const
virtual void SetLevelLoadReferenced(bool referenced)
bool ConvertMAToModelSurfaces(const struct maModel_s *ma)
virtual idRenderModel * InstantiateDynamicModel(const struct renderEntity_s *ent, const struct viewDef_s *view, idRenderModel *cachedModel)
virtual dynamicModel_t IsDynamicModel() const
void TransformVerts(idDrawVert *verts, const idJointMat *joints)
virtual bool IsStaticWorldModel() const
void GetFrameBounds(const renderEntity_t *ent, idBounds &bounds) const
void UpdateSurface(const struct renderEntity_s *ent, const idJointMat *joints, modelSurface_t *surf)
virtual jointHandle_t GetJointHandle(const char *name) const
bool DeleteSurfaceWithId(int id)
virtual void WriteToDemoFile(class idDemoFile *f)
virtual void InitFromFile(const char *fileName)
virtual idBounds Bounds(const struct renderEntity_s *ent) const
idVec3 pts[MAX_TRAIL_PTS]
static idCVar r_slopTexCoord
virtual idRenderModel * InstantiateDynamicModel(const struct renderEntity_s *ent, const struct viewDef_s *view, idRenderModel *cachedModel)
virtual int NearestJoint(int surfaceNum, int a, int b, int c) const
virtual void ReadFromDemoFile(class idDemoFile *f)
virtual bool IsLoaded() const
virtual idBounds Bounds(const struct renderEntity_s *ent) const
virtual idBounds Bounds(const struct renderEntity_s *ent) const
virtual int Memory() const
virtual void InitEmpty(const char *name)
static idRenderModel * Alloc()
virtual idRenderModel * InstantiateDynamicModel(const struct renderEntity_s *ent, const struct viewDef_s *view, idRenderModel *cachedModel)
virtual void FinishSurfaces()
virtual dynamicModel_t IsDynamicModel() const
void DeleteSurfacesWithNegativeId(void)
virtual idBounds Bounds(const struct renderEntity_s *ent) const
int NumWeights(void) const
virtual idBounds Bounds(const struct renderEntity_s *ent) const
virtual idBounds Bounds(const struct renderEntity_s *ent) const
void ParseJoint(idLexer &parser, idMD5Joint *joint, idJointQuat *defaultPose)
virtual idRenderModel * InstantiateDynamicModel(const struct renderEntity_s *ent, const struct viewDef_s *view, idRenderModel *cachedModel)
virtual void InitFromFile(const char *fileName)
struct aseModel_s * ConvertLWOToASE(const struct st_lwObject *obj, const char *fileName)
void WaterDrop(int x, int y, float *page)
virtual dynamicModel_t IsDynamicModel() const
virtual idBounds Bounds(const struct renderEntity_s *ent) const
virtual ID_TIME_T Timestamp() const
virtual const idJointQuat * GetDefaultPose(void) const
virtual int NumBaseSurfaces() const
GLubyte GLubyte GLubyte a
virtual void FreeVertexCache()
bool LoadASE(const char *fileName)
virtual void PurgeModel()
virtual bool IsDefaultModel() const
virtual idBounds Bounds(const struct renderEntity_s *ent) const
int NearestJoint(int a, int b, int c) const
const idMaterial * shader
virtual idBounds Bounds(const struct renderEntity_s *ent) const
virtual idRenderModel * InstantiateDynamicModel(const struct renderEntity_s *ent, const struct viewDef_s *view, idRenderModel *cachedModel)
virtual void InitFromFile(const char *fileName)
virtual float DepthHack() const
virtual dynamicModel_t IsDynamicModel() const
void UpdateTrail(int index, idVec3 pt)
virtual void InitFromFile(const char *fileName)
void DrawTrail(int index, const struct renderEntity_s *ent, srfTriangles_t *tri, float globalAlpha)
virtual bool IsLoaded() const
void IntersectBounds(const idBounds &bounds, float displacement)
static idCVar r_slopNormal
virtual void Print() const
int NewTrail(idVec3 pt, int duration)
const idMaterial * shader
idBounds CalcBounds(const idJointMat *joints)
virtual void FreeSurfaceTriangles(srfTriangles_t *tris) const
virtual void Print() const
virtual int NumSurfaces() const
virtual void PurgeModel()
virtual bool IsLevelLoadReferenced()
virtual dynamicModel_t IsDynamicModel() const
virtual idRenderModel * InstantiateDynamicModel(const struct renderEntity_s *ent, const struct viewDef_s *view, idRenderModel *cachedModel)
modelSurface_t GenerateSurface(float lerp)
static idCVar r_mergeModelSurfaces
virtual const char * GetJointName(jointHandle_t handle) const
bool LoadFLT(const char *fileName)
virtual bool IsLoaded() const
static idCVar r_slopVertex
virtual srfTriangles_t * ShadowHull() const
virtual const idJointQuat * GetDefaultPose(void) const
srfTriangles_t * shadowHull
virtual int NumJoints(void) const
virtual dynamicModel_t IsDynamicModel() const
struct deformInfo_s * deformInfo
idList< idMD5Mesh > meshes
idList< idJointQuat > defaultPose
bool LoadLWO(const char *fileName)
virtual int NearestJoint(int surfaceNum, int a, int b, int c) const
virtual int Memory() const
void DrawJoints(const renderEntity_t *ent, const struct viewDef_s *view) const
idList< idVec2 > texCoords
const idDeclParticle * particleSystem
virtual void AddSurface(modelSurface_t surface)