![]() |
OGRE 1.12.10
Object-Oriented Graphics Rendering Engine
|
Class to do pixel format mapping between GL and OGRE. More...
#include <OgreGLES2PixelFormat.h>
Static Public Member Functions | |
static PixelFormat | getClosestOGREFormat (GLenum fmt) |
Function to get the closest matching OGRE format to an internal GL format. | |
static GLenum | getGLInternalFormat (PixelFormat mFormat, bool hwGamma=false) |
Takes the OGRE pixel format and returns the type that must be provided to GL as internal format. | |
static GLenum | getGLOriginDataType (PixelFormat mFormat) |
Takes the OGRE pixel format and returns type that must be provided to GL as data type for reading it into the GPU. | |
static GLenum | getGLOriginFormat (PixelFormat mFormat) |
Takes the OGRE pixel format and returns the appropriate GL one. | |
static void | useSizedFormats () |
use sized pixel formats. (to be used with GLES3) | |
Class to do pixel format mapping between GL and OGRE.
use sized pixel formats. (to be used with GLES3)
|
static |
Takes the OGRE pixel format and returns the appropriate GL one.
|
static |
Takes the OGRE pixel format and returns type that must be provided to GL as data type for reading it into the GPU.
|
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.
mFormat | The pixel format |
hwGamma | Whether a hardware gamma-corrected version is requested |
|
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.