public abstract class TextureHelper extends Object
Constructor and Description |
---|
TextureHelper() |
Modifier and Type | Method and Description |
---|---|
abstract void |
doTextureCopy(Texture atlas,
Texture source,
int atlasX,
int atlasY)
Copy the texture from the source to the atlas at the specified position
This will use the devised GL helper to do either GL-side copy or a subimage upload
|
abstract void |
doTextureUpload(TextureStitched source)
Upload the texture to the GPU for GL side copying operations
This may be a no-op depending on the active implementation.
|
void |
rotateTexture(Texture texture,
ByteBuffer buffer)
Rotate the texture so that it doesn't need a rotational transform applied each tick
|
public abstract void doTextureCopy(Texture atlas, Texture source, int atlasX, int atlasY)
atlas
- The atlas texture we're copying intosource
- The source texture we're copying from (complete)atlasX
- The X position on the atlasatlasY
- The Y position on the atlaspublic abstract void doTextureUpload(TextureStitched source)
source
- The texture to uploadpublic void rotateTexture(Texture texture, ByteBuffer buffer)
texture
- The texture to rotatebuffer
- The buffer for the texture