VisioMove SDK (iOS)
2.1.22
|
Public Member Functions | |
virtual | ~VgITextureManager () |
virtual VgEngine::VgRefPtr< VgEngine::VgITexture > | createTexture (VgEngine::VgConstRefPtr< VgEngine::VgBinaryBuffer >const &pBuffer, bool pGenerateMipmaps=true)=0 |
virtual VgEngine::VgRefPtr< VgEngine::VgITexture > | createTexture (VgEngine::UInt pWidth, VgEngine::UInt pHeight, VgEngine::VgPixelFormat pPixelFormat, const char *pData, UInt pLength, bool pGenerateMipmaps=true)=0 |
virtual VgEngine::VgRefPtr< VgEngine::VgITexture > | createTextureWithUniformColor (const VgEngine::VgColor &pColor, VgEngine::UInt pWidth=1, VgEngine::UInt pHeight=1)=0 |
virtual VgEngine::VgRefPtr< VgEngine::VgITexture > | getTexture (const std::string &pTextureName)=0 |
Protected Member Functions | |
VgITextureManager () | |
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.
|
inlineprotected |
Constructor.
|
inlinevirtual |
Destructor.
References createTexture(), createTextureWithUniformColor(), and getTexture().
|
pure virtual |
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. |
Referenced by ~VgITextureManager().
|
pure virtual |
Creates a Texture from a VgEngine::VgByte pointer and Image dimensions. For example, to create a simple checker marker:
pWidth | width of the image |
pHeight | height of the image |
pPixelFormat | the pixel format to use. |
pData | should a pointer with pWidth * pHeight * (3 or 4 depending on pPixelFormat (eRGB or eRGBA)) bytes. This data will be copied. |
pLength | length of valid data of pData, should be pWidth * pHeight * (3 or 4 depending on pPixelFormat (eRGB or eRGBA)) @ |
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 |
|
pure virtual |
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. |
Referenced by ~VgITextureManager().
|
pure virtual |
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. |
Referenced by ~VgITextureManager().