Stores parameters of OpenGL texture format.
More...
#include <OpenGl_TextureFormat.hxx>
Stores parameters of OpenGL texture format.
◆ OpenGl_TextureFormat()
OpenGl_TextureFormat::OpenGl_TextureFormat |
( |
| ) |
|
|
inline |
Empty constructor (invalid texture format).
◆ Create()
template<class theCompType , int theNbComps>
Returns texture format for specified type and number of channels.
- Template Parameters
-
theCompType | component type |
theNbComps | number of components |
◆ DataType()
GLint OpenGl_TextureFormat::DataType |
( |
| ) |
const |
|
inline |
Returns OpenGL data type of the pixel data (example: GL_FLOAT).
◆ FindCompressedFormat()
Find texture format suitable to specified compressed texture format.
- Parameters
-
theCtx | [in] OpenGL context defining supported texture formats |
theFormat | [in] compressed texture format |
- Returns
- found format or invalid format
◆ FindFormat()
Find texture format suitable to specified image format.
- Parameters
-
theCtx | [in] OpenGL context defining supported texture formats |
theFormat | [in] image format |
theIsColorMap | [in] flag indicating color nature of image (to select sRGB texture) |
- Returns
- found format or invalid format
◆ FindSizedFormat()
Find texture format suitable to specified internal (sized) texture format.
- Parameters
-
theCtx | [in] OpenGL context defining supported texture formats |
theSizedFormat | [in] sized (internal) texture format (example: GL_RGBA8) |
- Returns
- found format or invalid format
◆ Format()
GLenum OpenGl_TextureFormat::Format |
( |
| ) |
const |
|
inline |
Returns OpenGL format of the pixel data (example: GL_RED).
◆ Internal()
GLint OpenGl_TextureFormat::Internal |
( |
| ) |
const |
|
inline |
Returns OpenGL internal format of the pixel data (example: GL_R32F).
◆ InternalFormat()
GLint OpenGl_TextureFormat::InternalFormat |
( |
| ) |
const |
|
inline |
Returns OpenGL internal format of the pixel data (example: GL_R32F).
◆ IsSRGB()
bool OpenGl_TextureFormat::IsSRGB |
( |
| ) |
const |
|
inline |
Return TRUE if internal texture format is sRGB(A).
◆ IsValid()
bool OpenGl_TextureFormat::IsValid |
( |
| ) |
const |
|
inline |
Return TRUE if format is defined.
◆ NbComponents()
GLint OpenGl_TextureFormat::NbComponents |
( |
| ) |
const |
|
inline |
Returns number of components (channels). Here for debugging purposes.
◆ PixelFormat()
GLenum OpenGl_TextureFormat::PixelFormat |
( |
| ) |
const |
|
inline |
Returns OpenGL format of the pixel data (example: GL_RED).
◆ SetDataType()
void OpenGl_TextureFormat::SetDataType |
( |
GLint |
theType | ) |
|
|
inline |
Sets OpenGL data type of the pixel data.
◆ SetInternalFormat()
void OpenGl_TextureFormat::SetInternalFormat |
( |
GLint |
theInternal | ) |
|
|
inline |
Sets texture internal format.
◆ SetNbComponents()
void OpenGl_TextureFormat::SetNbComponents |
( |
GLint |
theNbComponents | ) |
|
|
inline |
Sets number of components (channels).
◆ SetPixelFormat()
void OpenGl_TextureFormat::SetPixelFormat |
( |
GLenum |
theFormat | ) |
|
|
inline |
Sets OpenGL format of the pixel data.
The documentation for this class was generated from the following file: