NvImageGL Namespace Reference
GL-based image loading, representation and handling Support loading of images from DDS files and data, including cube maps, arrays mipmap levels, formats, etc. More...
Functions | |
uint32_t | UploadTexture (NvImage *image) |
Create a new GL texture and upload the given image to it. | |
uint32_t | UploadTextureFromDDSFile (const char *filename) |
Create a new GL texture directly from DDS file Uses NvAssetLoaderRead for opening the file. | |
uint32_t | UploadTextureFromFile (const char *filename) |
Create a new GL texture directly from any supported file- Uses NvAssetLoaderRead for opening the file. | |
uint32_t | UploadTextureFromDDSData (const char *ddsData, int32_t length) |
Create a new GL texture directly from DDS file-formatted data. | |
void | SupportsFormatConversion (bool convert) |
Indicates whether the GL level supports converting from format to internalFormat (basically, is this GLES or GL). |
Detailed Description
GL-based image loading, representation and handling Support loading of images from DDS files and data, including cube maps, arrays mipmap levels, formats, etc.The class does NOT encapsulate a GL texture object, only the client side pixel data that could be used to create such a texture
Function Documentation
void NvImageGL::SupportsFormatConversion | ( | bool | convert | ) |
Indicates whether the GL level supports converting from format to internalFormat (basically, is this GLES or GL).
- Parameters:
-
[in] convert true if the API supports conversion
uint32_t NvImageGL::UploadTexture | ( | NvImage * | image | ) |
Create a new GL texture and upload the given image to it.
- Parameters:
-
[in] image the image to load
- Returns:
- the GL texture ID on success, 0 on failure
uint32_t NvImageGL::UploadTextureFromDDSData | ( | const char * | ddsData, | |
int32_t | length | |||
) |
Create a new GL texture directly from DDS file-formatted data.
- Parameters:
-
[in] ddsData the pointer to the DDS file data [in] length the size in bytes of the file block
- Returns:
- the GL texture ID on success, 0 on failure
uint32_t NvImageGL::UploadTextureFromDDSFile | ( | const char * | filename | ) |
Create a new GL texture directly from DDS file Uses NvAssetLoaderRead for opening the file.
See the documentation for that package to understand the correct paths
- Parameters:
-
[in] filename the image filename (and path) to load
- Returns:
- the GL texture ID on success, 0 on failure
uint32_t NvImageGL::UploadTextureFromFile | ( | const char * | filename | ) |
Create a new GL texture directly from any supported file- Uses NvAssetLoaderRead for opening the file.
See the documentation for that package to understand the correct paths
- Parameters:
-
[in] filename the image filename (and path) to load
- Returns:
- the GL texture ID on success, 0 on failure