DrawableImage::GetTexture

DrawableImage::GetTexture
virtual Texture* GetTexture(TextureManager* pmanager);
Description

GetTexture obtains the texture pointer from the data, intended for use with a given renderer. This method can internally load and create the texture, if this has not been done yet. 

Note that this function will only be called from the rendering thread and can thus access pTexture pointer directly without atomics, as pTexture cannot change during such a call. This is the case since Render::ContextImpl::Context entry will AddRef to image, not allowing it to be released until render frame is done.

Parameters
Parameters 
Description 
TextureManager* pmanager 
A pointer to the texture manager which will be used to display the texture. 
Return Value

A Texture pointer to the texture of the image.