CUDA data: Textures.
Public Member Functions | |
virtual const CRxImageFormat & | GetImageFormat (EImage::ID eImgID) const =0 |
Gets the image format of the image defined by the given ID. More... | |
virtual void | UpdateTexture (EImage::ID eImgID, COpenGlInterop &xOpenGL, bool bCreateMipmaps=false)=0 |
Updates the OpenGL texture of the image defined by the given ID. More... | |
Protected Member Functions | |
ICudaDataTextures () | |
virtual | ~ICudaDataTextures () |
|
inlineprotected |
|
inlineprotectedvirtual |
|
pure virtual |
Gets the image format of the image defined by the given ID.
eImgID | The image ID. |
|
pure virtual |
Updates the OpenGL texture of the image defined by the given ID.
This copies the image into the texture and creates a valid texture ID if the texture has not been created before. The calling thread must own the OpenGL context that owns the texture.
eImgID | The image ID. |
xOpenGL | [in] The OpenGlInterop class. |
bCreateMipmaps | (optional) True to create mipmaps of the texture. |