|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TextureBinder
Responsible for binding textures, may implement a strategy to avoid binding a texture unnecessarily. A TextureBinder may decide to which texture unit it binds a texture.
Method Summary | |
---|---|
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 |
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |