55 bool load(
const EnvironmentDbEntry* entry, std::array<const unsigned int*, MAX_ENVIRONMENT_TEXTURES> bitmaps);
89 void drawBillboards(
bool faceCamera, ae::q20_12_t camX, ae::q20_12_t camY, ae::q20_12_t camZ);
constexpr int MAX_ENVIRONMENT_TEXTURES
Manager for hardware specific rendering functionse.
int textureIDs[MAX_ENVIRONMENT_TEXTURES]
const EnvironmentDbEntry * dbEntry
void cleanup()
Frees all display lists and deletes all textures owned by this Environment, and clears the current da...
void drawBillboards(bool faceCamera, ae::q20_12_t camX, ae::q20_12_t camY, ae::q20_12_t camZ)
Renders every billboard quad defined for the currently loaded environment.
Environment()
Constructs an empty Environment with all texture and display-list slots cleared and no database entry...
void draw()
Renders every loaded texture/display-list pair for the currently loaded environment.
u32 * displayLists[MAX_ENVIRONMENT_TEXTURES]
u32 dlSizes[MAX_ENVIRONMENT_TEXTURES]
bool load(const EnvironmentDbEntry *entry, std::array< const unsigned int *, MAX_ENVIRONMENT_TEXTURES > bitmaps)
Loads environment geometry (display lists) and textures from the compiled .bin file described by an E...