allocate/free texture units.
void Initialize()
Update the number of hardware texture units for the current context.
virtual void Free(int textureUnitId)
Release a texture unit.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int Allocate(int unit)
Reserve a specific texture unit if not already in use.
bool IsAllocated(int textureUnitId)
Tell if texture unit ‘textureUnitId’ is already allocated.
int GetNumberOfTextureUnits()
Number of texture units supported by the OpenGL context.
void DeleteTable()
Delete the allocation table and check if it is not called before all the texture units have been rele...
~vtkTextureUnitManager() override
Destructor.
static vtkTextureUnitManager * New()