120 idMapPatch(
int maxPatchWidth,
int maxPatchHeight );
193 bool Parse(
const char *filename,
bool ignoreRegion =
false,
bool osPath =
false );
194 bool Write(
const char *fileName,
const char *ext,
bool fromBasePath =
true );
int GetNumSides(void) const
const idPlane & GetPlane(void) const
const float DEFAULT_CURVE_MAX_ERROR_CD
idList< idMapEntity * > entities
idMapEntity * GetEntity(int i) const
idList< idDrawVert > verts
unsigned int GetGeometryCRC(void) const
void AddPrimitive(idMapPrimitive *p)
idMapBrushSide * GetSide(int i) const
int GetVertSubdivisions(void) const
idMapEntity * FindEntity(const char *name)
int AddSide(idMapBrushSide *side)
void SetNum(int newnum, bool resize=true)
unsigned int GetGeometryCRC(void) const
void SetExplicitlySubdivided(bool b)
static idMapBrush * Parse(idLexer &src, const idVec3 &origin, bool newFormat=true, float version=CURRENT_MAP_VERSION)
unsigned int GetGeometryCRC(void) const
bool Write(idFile *fp, int primitiveNum, const idVec3 &origin) const
int GetHorzSubdivisions(void) const
bool Write(idFile *fp, int primitiveNum, const idVec3 &origin) const
const char * GetMaterial(void) const
static idMapBrush * ParseQ3(idLexer &src, const idVec3 &origin)
GLuint GLuint GLsizei GLenum type
idList< idMapPrimitive * > primitives
const int CURRENT_MAP_VERSION
void RemovePrimitiveData()
void SetPlane(const idPlane &p)
const float DEFAULT_CURVE_MAX_ERROR
void RemoveEntities(const char *classname)
void SetMaterial(const char *p)
unsigned int GetGeometryCRC(void) const
static idMapEntity * Parse(idLexer &src, bool worldSpawn=false, float version=CURRENT_MAP_VERSION)
int GetNumEntities(void) const
const float DEFAULT_CURVE_MAX_LENGTH_CD
bool Parse(const char *filename, bool ignoreRegion=false, bool osPath=false)
ID_TIME_T GetFileTime(void) const
bool Write(const char *fileName, const char *ext, bool fromBasePath=true)
void GetTextureMatrix(idVec3 &mat1, idVec3 &mat2)
const int DEFAULT_CURVE_SUBDIVISION
bool GetExplicitlySubdivided(void) const
void SetVertSubdivisions(int n)
void DeleteContents(bool clear)
void SetMaterial(const char *p)
void GetTextureVectors(idVec4 v[2]) const
void SetHashSize(int hashSize)
GLenum GLsizei GLsizei height
void RemoveEntity(idMapEntity *mapEnt)
idList< idMapBrushSide * > sides
int Append(const type &obj)
bool explicitSubdivisions
idMapPrimitive * GetPrimitive(int i) const
const float DEFAULT_CURVE_MAX_LENGTH
void SetTextureMatrix(const idVec3 mat[2])
const char * GetMaterial(void) const
bool Write(idFile *fp, int entityNum) const
void SetHorzSubdivisions(int n)
virtual ~idMapPrimitive(void)
void RemovePrimitiveData()
int AddEntity(idMapEntity *mapentity)
void SetGeometryCRC(void)
static idMapPatch * Parse(idLexer &src, const idVec3 &origin, bool patchDef3=true, float version=CURRENT_MAP_VERSION)
int GetNumPrimitives(void) const
const char * GetName(void) const
const int OLD_MAP_VERSION