YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
cpw.mods.fml.client.TextureHelper Class Referenceabstract
Inheritance diagram for cpw.mods.fml.client.TextureHelper:
cpw.mods.fml.client.CopySubimageTextureHelper cpw.mods.fml.client.OpenGL43TextureHelper

Public Member Functions

abstract void doTextureCopy (Texture atlas, Texture source, int atlasX, int atlasY)
 
abstract void doTextureUpload (TextureStitched source)
 
void rotateTexture (Texture texture, ByteBuffer buffer)
 

Member Function Documentation

abstract void cpw.mods.fml.client.TextureHelper.doTextureCopy ( Texture  atlas,
Texture  source,
int  atlasX,
int  atlasY 
)
pure virtual

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

Parameters
atlasThe atlas texture we're copying into
sourceThe source texture we're copying from (complete)
atlasXThe X position on the atlas
atlasYThe Y position on the atlas

Implemented in cpw.mods.fml.client.OpenGL43TextureHelper, and cpw.mods.fml.client.CopySubimageTextureHelper.

abstract void cpw.mods.fml.client.TextureHelper.doTextureUpload ( TextureStitched  source)
pure virtual

Upload the texture to the GPU for GL side copying operations This may be a no-op depending on the active implementation.

Parameters
sourceThe texture to upload

Implemented in cpw.mods.fml.client.CopySubimageTextureHelper, and cpw.mods.fml.client.OpenGL43TextureHelper.

void cpw.mods.fml.client.TextureHelper.rotateTexture ( Texture  texture,
ByteBuffer  buffer 
)

Rotate the texture so that it doesn't need a rotational transform applied each tick

Parameters
textureThe texture to rotate
bufferThe buffer for the texture

The documentation for this class was generated from the following file: