Package heronarts.glx
Class Texture
java.lang.Object
heronarts.glx.Texture
- All Implemented Interfaces:
BGFXEngine.Resource
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Texture
-
Texture
Create a texture from a byte array of image data- Parameters:
glx- GLX instancewidth- Texture widthheight- Texture heighttextureFormat- BGFX texture formattextureData- Texture data
-
-
Method Details
-
from2dImage
- Throws:
IOException
-
getHandle
public short getHandle() -
dispose
public void dispose()- Specified by:
disposein interfaceBGFXEngine.Resource
-