VisioMove SDK (Android)
2.1.22
|
Public Member Functions | |
VgITextureRefPtr | createTexture (VgBinaryBufferConstRefPtr pBuffer, boolean pGenerateMipmaps) |
VgITextureRefPtr | createTexture (VgBinaryBufferConstRefPtr pBuffer) |
VgITextureRefPtr | createTexture (long pWidth, long pHeight, VgPixelFormat pPixelFormat, String pData, long pLength, boolean pGenerateMipmaps) |
VgITextureRefPtr | createTexture (long pWidth, long pHeight, VgPixelFormat pPixelFormat, String pData, long pLength) |
VgITextureRefPtr | createTextureWithUniformColor (VgColor pColor, long pWidth, long pHeight) |
VgITextureRefPtr | createTextureWithUniformColor (VgColor pColor, long pWidth) |
VgITextureRefPtr | createTextureWithUniformColor (VgColor pColor) |
VgITextureRefPtr | getTexture (String pTextureName) |
The VgITextureManager class is used to create VgITexture given a VgBinaryBuffer .
The VgITextureManager class is in charge of passing the VgBinaryBuffer data to the graphics engine and creates internal objects that allows usage of the returned texture.
The below code snippet demonstrates how a VgITexture can be created.
VgITextureRefPtr VgITextureManager.createTexture | ( | VgBinaryBufferConstRefPtr | pBuffer, |
boolean | pGenerateMipmaps | ||
) |
Creates a Texture from a VgBinaryBuffer .
pBuffer | The buffer from where the texture will be loaded. |
pGenerateMipmaps | Default true, indicates whether mipmaps should be auto-generated; if set to true it will generate mipmaps for zoomed levels if supported by the hardware. This is used to avoid flickering at the expense of some fuzziness. |
VgITextureRefPtr VgITextureManager.createTexture | ( | VgBinaryBufferConstRefPtr | pBuffer | ) |
VgITextureRefPtr VgITextureManager.createTexture | ( | long | pWidth, |
long | pHeight, | ||
VgPixelFormat | pPixelFormat, | ||
String | pData, | ||
long | pLength, | ||
boolean | pGenerateMipmaps | ||
) |
VgITextureRefPtr VgITextureManager.createTexture | ( | long | pWidth, |
long | pHeight, | ||
VgPixelFormat | pPixelFormat, | ||
String | pData, | ||
long | pLength | ||
) |
VgITextureRefPtr VgITextureManager.createTextureWithUniformColor | ( | VgColor | pColor, |
long | pWidth, | ||
long | pHeight | ||
) |
Creates a WxH pixel uniform color VgITexture useful for backgrounds and debugging.
pColor | color of texture. |
pWidth | width of texture, 1 by default. |
pHeight | color of texture, 1 by default. |
VgITextureRefPtr VgITextureManager.createTextureWithUniformColor | ( | VgColor | pColor, |
long | pWidth | ||
) |
VgITextureRefPtr VgITextureManager.createTextureWithUniformColor | ( | VgColor | pColor | ) |
VgITextureRefPtr VgITextureManager.getTexture | ( | String | pTextureName | ) |
Returns a named texture from the registered textures. This method is mainly used to get back textures from the ones declared in vg_config.xml in the <resources> section.
pTextureName | The name of the texture. In vg_config this is the 'id' attribute of the 'texture' tag. |