public class VgITextureManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
VgITextureRefPtr |
createTexture(VgBinaryBufferConstRefPtr pBuffer) |
VgITextureRefPtr |
createTexture(VgBinaryBufferConstRefPtr pBuffer,
boolean pGenerateMipmaps)
Creates a Texture from a VgBinaryBuffer.
|
void |
delete() |
VgITextureRefPtr |
getTexture(java.lang.String pTextureName)
Returns a named texture from the registered textures.
|
static VgBinaryBufferRefPtr |
prepareTextureBuffer(long pWidth,
long pHeight,
VgPixelFormat pPixelFormat,
SWIGTYPE_p_p_unsigned_char pOutData) |
public void delete()
public VgITextureRefPtr createTexture(VgBinaryBufferConstRefPtr pBuffer, boolean pGenerateMipmaps)
pBuffer
- The buffer from where the texture will be loaded.pGenerateMipmaps
- Indicates whether mipmaps should be auto-generated.public VgITextureRefPtr createTexture(VgBinaryBufferConstRefPtr pBuffer)
public static VgBinaryBufferRefPtr prepareTextureBuffer(long pWidth, long pHeight, VgPixelFormat pPixelFormat, SWIGTYPE_p_p_unsigned_char pOutData)
public VgITextureRefPtr getTexture(java.lang.String pTextureName)
pTextureName
- The name of the texture. In vg_config this is the 'id' attribute of the 'texture' tag.