molecular
Classes | Public Member Functions | List of all members
molecular::util::KtxFile Class Reference

Interface to Khronos KTX texture files. More...

#include <KtxFile.h>

Classes

struct  Header
 

Public Member Functions

 KtxFile (const void *fileData, std::size_t fileSize)
 
uint32_t GetGlType () const
 
uint32_t GetGlTypeSize () const
 
uint32_t GetGlFormat () const
 
uint32_t GetGlInternalFormat () const
 
uint32_t GetGlBaseInternalFormat () const
 
uint32_t GetPixelWidth () const
 
uint32_t GetPixelHeight () const
 
uint32_t GetPixelDepth () const
 
uint32_t GetNumberOfArrayElements () const
 
uint32_t GetNumberOfFaces () const
 
uint32_t GetNumberOfMipmapLevels () const
 
std::pair< const void *, std::size_t > GetImageData (int mipmapLevel, int face=0, int arrayElement=0)
 

Detailed Description

Interface to Khronos KTX texture files.

Todo:
Test cube map and array textures.

Constructor & Destructor Documentation

molecular::util::KtxFile::KtxFile ( const void *  fileData,
std::size_t  fileSize 
)
Parameters
fileDataPointer to file contents. Must be valid through the entire lifetime of this KtxFile.

Member Function Documentation

uint32_t molecular::util::KtxFile::GetGlBaseInternalFormat ( ) const
inline
uint32_t molecular::util::KtxFile::GetGlFormat ( ) const
inline
uint32_t molecular::util::KtxFile::GetGlInternalFormat ( ) const
inline
uint32_t molecular::util::KtxFile::GetGlType ( ) const
inline
uint32_t molecular::util::KtxFile::GetGlTypeSize ( ) const
inline
std::pair< const void *, std::size_t > molecular::util::KtxFile::GetImageData ( int  mipmapLevel,
int  face = 0,
int  arrayElement = 0 
)
uint32_t molecular::util::KtxFile::GetNumberOfArrayElements ( ) const
inline
uint32_t molecular::util::KtxFile::GetNumberOfFaces ( ) const
inline
uint32_t molecular::util::KtxFile::GetNumberOfMipmapLevels ( ) const
inline
uint32_t molecular::util::KtxFile::GetPixelDepth ( ) const
inline
uint32_t molecular::util::KtxFile::GetPixelHeight ( ) const
inline
uint32_t molecular::util::KtxFile::GetPixelWidth ( ) const
inline

The documentation for this class was generated from the following files: