| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final int | count
The amount of exclusive textures that may be used |
| private int | |
| public static final int | |
| public static final int | MAX_GLES_UNITS
GLES only supports up to 32 textures |
| private final int | method
The method of binding to use |
| private final int | offset
The index of the first exclusive texture unit |
| private int | |
| private boolean | reused
Flag to indicate the current texture is reused |
| public static final int | |
| private final TextureDescriptor | |
| private final GLTexture[] | textures
The textures currently exclusive bound |
| private int[] | unitsLRU
Texture units ordered from most to least recently used |
| Access | Constructor and Description |
|---|---|
| public | |
| public | DefaultTextureBinder(final int method, final int offset)
Uses all remaining texture units and reuse weight of 3 |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | begin()
Implements com. Prepares the binder for operation, must be matched with a call to |
| public final int | bind(final TextureDescriptor<T extends GLTexture> textureDesc)
Implements com. Binds the texture to an available unit and applies the filters in the descriptor. |
| public final int | bind(final GLTexture texture)
Implements com. Binds the texture to an available unit. |
| private final int | |
| private final int | |
| private final int | |
| public void | end()
Implements com. Disables all used texture units and unbinds textures. |
| public final int | |
| private static int | |
| public final int | |
| public final void | resetCounts()
Implements com. Resets the bind/reuse counts |
| bindCount | back to summary |
|---|---|
| private int bindCount | |
| count | back to summary |
|---|---|
| private final int count The amount of exclusive textures that may be used | |
| currentTexture | back to summary |
|---|---|
| private int currentTexture | |
| LRU | back to summary |
|---|---|
| public static final int LRU | |
| MAX_GLES_UNITS | back to summary |
|---|---|
| public static final int MAX_GLES_UNITS GLES only supports up to 32 textures | |
| method | back to summary |
|---|---|
| private final int method The method of binding to use | |
| offset | back to summary |
|---|---|
| private final int offset The index of the first exclusive texture unit | |
| reuseCount | back to summary |
|---|---|
| private int reuseCount | |
| reused | back to summary |
|---|---|
| private boolean reused Flag to indicate the current texture is reused | |
| ROUNDROBIN | back to summary |
|---|---|
| public static final int ROUNDROBIN | |
| tempDesc | back to summary |
|---|---|
| private final TextureDescriptor<T extends GLTexture> tempDesc | |
| textures | back to summary |
|---|---|
| private final GLTexture[] textures The textures currently exclusive bound | |
| unitsLRU | back to summary |
|---|---|
| private int[] unitsLRU Texture units ordered from most to least recently used | |
| DefaultTextureBinder | back to summary |
|---|---|
| public DefaultTextureBinder(final int method) Uses all available texture units and reuse weight of 3 | |
| DefaultTextureBinder | back to summary |
|---|---|
| public DefaultTextureBinder(final int method, final int offset) Uses all remaining texture units and reuse weight of 3 | |
| DefaultTextureBinder | back to summary |
|---|---|
| public DefaultTextureBinder(final int method, final int offset, int count) | |
| begin | back to summary |
|---|---|
| public void begin() Implements com. Doc from com. Prepares the binder for operation, must be matched with a call to
| |
| bind | back to summary |
|---|---|
| public final int bind(final TextureDescriptor<T extends GLTexture> textureDesc) Implements com. Doc from com. Binds the texture to an available unit and applies the filters in the descriptor.
| |
| bind | back to summary |
|---|---|
| public final int bind(final GLTexture texture) Implements com. Doc from com. Binds the texture to an available unit.
| |
| bindTexture | back to summary |
|---|---|
| private final int bindTexture(final TextureDescriptor<T extends GLTexture> textureDesc, final boolean rebind) | |
| bindTextureLRU | back to summary |
|---|---|
| private final int bindTextureLRU(final GLTexture texture) | |
| bindTextureRoundRobin | back to summary |
|---|---|
| private final int bindTextureRoundRobin(final GLTexture texture) | |
| end | back to summary |
|---|---|
| public void end() Implements com. Doc from com. Disables all used texture units and unbinds textures. Resets the counts.
| |
| getBindCount | back to summary |
|---|---|
| public final int getBindCount() Implements com.
| |
| getMaxTextureUnits | back to summary |
|---|---|
| private static int getMaxTextureUnits() | |
| getReuseCount | back to summary |
|---|---|
| public final int getReuseCount() Implements com.
| |
| resetCounts | back to summary |
|---|---|
| public final void resetCounts() Implements com. Doc from com. Resets the bind/reuse counts
| |