Raytrix Light Field SDK  4.0
Logo
Public Member Functions | Protected Member Functions | List of all members
Rx::LFR::ICudaDataTextures Class Referenceabstract

Detailed Description

CUDA data: Textures.

Public Member Functions

virtual const CRxImageFormatGetImageFormat (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 ()
 

Constructor & Destructor Documentation

Rx::LFR::ICudaDataTextures::ICudaDataTextures ( )
inlineprotected
virtual Rx::LFR::ICudaDataTextures::~ICudaDataTextures ( )
inlineprotectedvirtual

Member Function Documentation

virtual const CRxImageFormat& Rx::LFR::ICudaDataTextures::GetImageFormat ( EImage::ID  eImgID) const
pure virtual

Gets the image format of the image defined by the given ID.

Parameters
eImgIDThe image ID.
Returns
The image format.
virtual void Rx::LFR::ICudaDataTextures::UpdateTexture ( EImage::ID  eImgID,
COpenGlInterop xOpenGL,
bool  bCreateMipmaps = false 
)
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.

Parameters
eImgIDThe image ID.
xOpenGL[in] The OpenGlInterop class.
bCreateMipmaps(optional) True to create mipmaps of the texture.