Open CASCADE Technology  7.2.0
Public Member Functions | Static Public Member Functions

OpenGl_TextureFormat Class Reference

Stores parameters of OpenGL texture format. More...

#include <OpenGl_Texture.hxx>

Public Member Functions

GLenum Format () const
 Returns OpenGL format of the pixel data. More...
 
GLint Internal () const
 Returns OpenGL internal format of the pixel data. More...
 
GLint DataType () const
 Returns OpenGL data type of the pixel data. More...
 

Static Public Member Functions

template<class T , int N>
static OpenGl_TextureFormat Create ()
 Returns texture format for specified type and number of channels. More...
 

Detailed Description

Stores parameters of OpenGL texture format.

Member Function Documentation

◆ Create()

template<class T , int N>
static OpenGl_TextureFormat OpenGl_TextureFormat::Create ( )
inlinestatic

Returns texture format for specified type and number of channels.

◆ DataType()

GLint OpenGl_TextureFormat::DataType ( ) const
inline

Returns OpenGL data type of the pixel data.

◆ Format()

GLenum OpenGl_TextureFormat::Format ( ) const
inline

Returns OpenGL format of the pixel data.

◆ Internal()

GLint OpenGl_TextureFormat::Internal ( ) const
inline

Returns OpenGL internal format of the pixel data.


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