This commit is contained in:
romkazvo
2023-08-07 19:29:24 +08:00
commit 34d6c5d489
4832 changed files with 1389451 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
#ifndef __CREPREFABGEOM_H__
#define __CREPREFABGEOM_H__
//=============================================================
struct SREPrefabStat
{
int NumRendPolys;
int NumVerts;
int NumIndices;
};
class CModelCgf;
class CREPrefabGeom : public CRendElement
{
public:
void *mModel;
static SREPrefabStat mRS;
static void mfPrintStat();
public:
CREPrefabGeom()
{
mfSetType(eDATA_Prefab);
mModel = 0;
mfSetFlags(FCEF_TRANSFORM);
}
virtual ~CREPrefabGeom() {};
bool mfCullBox(Vec3d vmin, Vec3d vmax);
virtual CRendElement *mfCopyConstruct(void);
virtual bool mfCompile(SShader *ef, char *scr);
virtual void mfPrepare();
virtual bool mfDraw(SShader *ef, SShaderPass *sl);
};
#endif // __CREPREFABGEOM_H__