Class to do pixel format mapping between GL and OGRE.
More...
#include <OgreGLES2PixelFormat.h>
Class to do pixel format mapping between GL and OGRE.
◆ useSizedFormats()
static void Ogre::GLES2PixelUtil::useSizedFormats |
( |
| ) |
|
|
static |
use sized pixel formats. (to be used with GLES3)
◆ getGLOriginFormat()
static GLenum Ogre::GLES2PixelUtil::getGLOriginFormat |
( |
PixelFormat |
mFormat | ) |
|
|
static |
Takes the OGRE pixel format and returns the appropriate GL one.
- Returns
- a GLenum describing the format, or 0 if there is no exactly matching one (and conversion is needed)
◆ getGLOriginDataType()
static GLenum Ogre::GLES2PixelUtil::getGLOriginDataType |
( |
PixelFormat |
mFormat | ) |
|
|
static |
Takes the OGRE pixel format and returns type that must be provided to GL as data type for reading it into the GPU.
- Returns
- a GLenum describing the data type, or 0 if there is no exactly matching one (and conversion is needed)
◆ getGLInternalFormat()
static GLenum Ogre::GLES2PixelUtil::getGLInternalFormat |
( |
PixelFormat |
mFormat, |
|
|
bool |
hwGamma = false |
|
) |
| |
|
static |
Takes the OGRE pixel format and returns the type that must be provided to GL as internal format.
GL_NONE if no match exists.
- Parameters
-
mFormat | The pixel format |
hwGamma | Whether a hardware gamma-corrected version is requested |
◆ getClosestOGREFormat()
static PixelFormat Ogre::GLES2PixelUtil::getClosestOGREFormat |
( |
GLenum |
fmt | ) |
|
|
static |
Function to get the closest matching OGRE format to an internal GL format.
To be precise, the format will be chosen that is most efficient to transfer to the card without losing precision.
The documentation for this class was generated from the following file: