public interface TextureBinder
Modifier and Type | Method and Description |
---|---|
void |
begin()
Prepares the binder for operation, must be matched with a call to
end() . |
int |
bind(GLTexture texture)
Binds the texture to an available unit.
|
int |
bind(TextureDescriptor textureDescriptor)
Binds the texture to an available unit and applies the filters in the descriptor.
|
void |
end()
Disables all used texture units and unbinds textures.
|
int |
getBindCount() |
int |
getReuseCount() |
void |
resetCounts()
Resets the bind/reuse counts
|
void begin()
end()
.void end()
int bind(TextureDescriptor textureDescriptor)
textureDescriptor
- the TextureDescriptor
int bind(GLTexture texture)
texture
- the Texture
int getBindCount()
resetCounts()
int getReuseCount()
void resetCounts()
Copyright © 2020. All rights reserved.