public class CopySubimageTextureHelper extends TextureHelper
Constructor and Description |
---|
CopySubimageTextureHelper() |
Modifier and Type | Method and Description |
---|---|
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
|
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.
|
rotateTexture
public void doTextureCopy(Texture atlas, Texture source, int atlasX, int atlasY)
TextureHelper
doTextureCopy
in class TextureHelper
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 void doTextureUpload(TextureStitched source)
TextureHelper
doTextureUpload
in class TextureHelper
source
- The texture to upload