Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
TextureUnitManager.h
1 //
2 // TextureUnitManager.h
3 //
4 // Originally written by RJ.
5 //
6 // Copyright (c) 2006 Virtual Terrain Project
7 // Free for all uses, see license.txt for details.
8 //
9 
10 #ifndef TEXTUREUNITMANAGERH
11 #define TEXTUREUNITMANAGERH
12 
14 {
15 public:
17  ~vtTextureUnitManager(void);
18  int ReserveTextureUnit(bool bHighest = false);
19  void FreeTextureUnit(int iUnit);
20 
21 private:
22  void Initialise();
23  int m_iNumTextureUnits;
24  bool m_bInitialised;
25  bool *m_pAllocationArray;
26 };
27 
28 #endif // TEXTUREUNITMANAGERH
29