| 
    Open CASCADE Technology 7.8.2.dev
    
   | 
 
Stores parameters of OpenGL texture format. More...
#include <OpenGl_TextureFormat.hxx>
Public Member Functions | |
| OpenGl_TextureFormat () | |
| Empty constructor (invalid texture format).   | |
| bool | IsValid () const | 
| Return TRUE if format is defined.   | |
| GLint | InternalFormat () const | 
| Returns OpenGL internal format of the pixel data (example: GL_R32F).   | |
| void | SetInternalFormat (GLint theInternal) | 
| Sets texture internal format.   | |
| GLenum | PixelFormat () const | 
| Returns OpenGL format of the pixel data (example: GL_RED).   | |
| void | SetPixelFormat (GLenum theFormat) | 
| Sets OpenGL format of the pixel data.   | |
| GLint | DataType () const | 
| Returns OpenGL data type of the pixel data (example: GL_FLOAT).   | |
| void | SetDataType (GLint theType) | 
| Sets OpenGL data type of the pixel data.   | |
| GLint | NbComponents () const | 
| Returns number of components (channels). Here for debugging purposes.   | |
| void | SetNbComponents (GLint theNbComponents) | 
| Sets number of components (channels).   | |
| bool | IsSRGB () const | 
| Return TRUE if internal texture format is sRGB(A).   | |
| Image_Format | ImageFormat () const | 
| Returns image format (best match or Image_Format_UNKNOWN if no suitable fit).   | |
| void | SetImageFormat (Image_Format theFormat) | 
| Sets image format.   | |
| GLint | Internal () const | 
| Returns OpenGL internal format of the pixel data (example: GL_R32F).   | |
| GLenum | Format () const | 
| Returns OpenGL format of the pixel data (example: GL_RED).   | |
Static Public Member Functions | |
| template<class theCompType , int theNbComps> | |
| static OpenGl_TextureFormat | Create () | 
| Returns texture format for specified type and number of channels.   | |
| static OpenGl_TextureFormat | FindFormat (const Handle< OpenGl_Context > &theCtx, Image_Format theFormat, bool theIsColorMap) | 
| Find texture format suitable to specified image format.   | |
| static OpenGl_TextureFormat | FindSizedFormat (const Handle< OpenGl_Context > &theCtx, GLint theSizedFormat) | 
| Find texture format suitable to specified internal (sized) texture format.   | |
| static OpenGl_TextureFormat | FindCompressedFormat (const Handle< OpenGl_Context > &theCtx, Image_CompressedFormat theFormat, bool theIsColorMap) | 
| Find texture format suitable to specified compressed texture format.   | |
| static TCollection_AsciiString | FormatFormat (GLint theInternalFormat) | 
| Format pixel format enumeration.   | |
| static TCollection_AsciiString | FormatDataType (GLint theDataType) | 
| Format data type enumeration.   | |
Stores parameters of OpenGL texture format.
      
  | 
  inline | 
Empty constructor (invalid texture format).
      
  | 
  inlinestatic | 
Returns texture format for specified type and number of channels.
| theCompType | component type | 
| theNbComps | number of components | 
      
  | 
  inline | 
Returns OpenGL data type of the pixel data (example: GL_FLOAT).
      
  | 
  static | 
Find texture format suitable to specified compressed texture format.
| theCtx | [in] OpenGL context defining supported texture formats | 
| theFormat | [in] compressed texture format | 
      
  | 
  static | 
Find texture format suitable to specified image format.
| theCtx | [in] OpenGL context defining supported texture formats | 
| theFormat | [in] image format | 
| theIsColorMap | [in] flag indicating color nature of image (to select sRGB texture) | 
      
  | 
  static | 
Find texture format suitable to specified internal (sized) texture format.
| theCtx | [in] OpenGL context defining supported texture formats | 
| theSizedFormat | [in] sized (internal) texture format (example: GL_RGBA8) | 
      
  | 
  inline | 
Returns OpenGL format of the pixel data (example: GL_RED).
      
  | 
  static | 
Format data type enumeration.
      
  | 
  static | 
Format pixel format enumeration.
      
  | 
  inline | 
Returns image format (best match or Image_Format_UNKNOWN if no suitable fit).
      
  | 
  inline | 
Returns OpenGL internal format of the pixel data (example: GL_R32F).
      
  | 
  inline | 
Returns OpenGL internal format of the pixel data (example: GL_R32F).
      
  | 
  inline | 
Return TRUE if internal texture format is sRGB(A).
      
  | 
  inline | 
Return TRUE if format is defined.
      
  | 
  inline | 
Returns number of components (channels). Here for debugging purposes.
      
  | 
  inline | 
Returns OpenGL format of the pixel data (example: GL_RED).
      
  | 
  inline | 
Sets OpenGL data type of the pixel data.
      
  | 
  inline | 
Sets image format.
      
  | 
  inline | 
Sets texture internal format.
      
  | 
  inline | 
Sets number of components (channels).
      
  | 
  inline | 
Sets OpenGL format of the pixel data.