virtual Texture* GetTexture(TextureManager* pmanager);
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 |
Description |
TextureManager* pmanager |
A pointer to the texture manager which will be used to display the texture. |
A Texture pointer to the texture of the image.