void SetMappingForSurface(const srfTriangles_t *tri)
const srfTriangles_t * currentTriMapping
void UpdateForCenter(float center[2])
megaTextureHeader_t header
idTextureLevel levels[MAX_LEVELS]
static void MakeMegaTexture_f(const idCmdArgs &args)
static idCVar r_megaTextureLevel
void BindForViewOrigin(const idVec3 origin)
static void GenerateMegaMipMaps(megaTextureHeader_t *header, idFile *file)
static idCVar r_skipMegaTexture
void SetViewOrigin(const idVec3 origin)
static idCVar r_showMegaTextureLabels
static idCVar r_showMegaTexture
void UpdateTile(int localX, int localY, int globalX, int globalY)
float localViewToTextureCenter[2][4]
static idCVar r_terrainScale
idTextureTile tileMap[TILE_PER_LEVEL][TILE_PER_LEVEL]
bool InitFromMegaFile(const char *fileBase)
static void GenerateMegaPreview(const char *fileName)