Class to do pixel format mapping between GL and OGRE.
More...
#include <OgreGLES2PixelFormat.h>
|
static GLenum | getClosestGLImageInternalFormat (PixelFormat format) |
| Takes the OGRE pixel format and returns the type that must be provided to GL as internal format for image load/store. More...
|
|
static GLenum | getClosestGLInternalFormat (PixelFormat mFormat, bool hwGamma) |
| Takes the OGRE pixel format and returns the type that must be provided to GL as internal format. More...
|
|
static PixelFormat | getClosestOGREFormat (GLenum fmt, GLenum dataType) |
| Function to get the closest matching OGRE format to an internal GL format. More...
|
|
static GLenum | getGLImageInternalFormat (PixelFormat format) |
| Takes the OGRE pixel format and returns the type that must be provided to GL as internal format for image load/store. More...
|
|
static GLenum | getGLInternalFormat (PixelFormat mFormat, bool hwGamma) |
| Takes the OGRE pixel format and returns the type that must be provided to GL as internal format. More...
|
|
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. More...
|
|
static GLenum | getGLOriginFormat (PixelFormat mFormat, bool hwGamma) |
| Takes the OGRE pixel format and returns the appropriate GL one. More...
|
|
static size_t | getMaxMipmaps (uint32 width, uint32 height, uint32 depth, PixelFormat format) |
| Returns the maximum number of Mipmaps that can be generated until we reach the mininum format possible. More...
|
|
static uint32 | optionalPO2 (uint32 value) |
| Returns next power-of-two size if required by render system, in case RSC_NON_POWER_OF_2_TEXTURES is supported it returns value as-is. More...
|
|
Class to do pixel format mapping between GL and OGRE.
◆ getClosestGLImageInternalFormat()
static GLenum Ogre::GLES2PixelUtil::getClosestGLImageInternalFormat |
( |
PixelFormat |
format | ) |
|
|
static |
Takes the OGRE pixel format and returns the type that must be provided to GL as internal format for image load/store.
If no match exists, returns the closest match.
- Parameters
-
◆ getClosestGLInternalFormat()
static GLenum Ogre::GLES2PixelUtil::getClosestGLInternalFormat |
( |
PixelFormat |
mFormat, |
|
|
bool |
hwGamma |
|
) |
| |
|
static |
Takes the OGRE pixel format and returns the type that must be provided to GL as internal format.
If no match exists, returns the closest match.
- Parameters
-
mFormat | The pixel format |
hwGamma | Whether a hardware gamma-corrected version is requested |
◆ getClosestOGREFormat()
static PixelFormat Ogre::GLES2PixelUtil::getClosestOGREFormat |
( |
GLenum |
fmt, |
|
|
GLenum |
dataType |
|
) |
| |
|
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.
◆ getGLImageInternalFormat()
static GLenum Ogre::GLES2PixelUtil::getGLImageInternalFormat |
( |
PixelFormat |
format | ) |
|
|
static |
Takes the OGRE pixel format and returns the type that must be provided to GL as internal format for image load/store.
GL_NONE if no match exists.
- Parameters
-
◆ getGLInternalFormat()
static GLenum Ogre::GLES2PixelUtil::getGLInternalFormat |
( |
PixelFormat |
mFormat, |
|
|
bool |
hwGamma |
|
) |
| |
|
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 |
◆ 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)
◆ getGLOriginFormat()
static GLenum Ogre::GLES2PixelUtil::getGLOriginFormat |
( |
PixelFormat |
mFormat, |
|
|
bool |
hwGamma |
|
) |
| |
|
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)
◆ getMaxMipmaps()
static size_t Ogre::GLES2PixelUtil::getMaxMipmaps |
( |
uint32 |
width, |
|
|
uint32 |
height, |
|
|
uint32 |
depth, |
|
|
PixelFormat |
format |
|
) |
| |
|
static |
Returns the maximum number of Mipmaps that can be generated until we reach the mininum format possible.
This does not count the base level.
- Parameters
-
width | The width of the area |
height | The height of the area |
depth | The depth of the area |
format | The format of the area |
◆ optionalPO2()
static uint32 Ogre::GLES2PixelUtil::optionalPO2 |
( |
uint32 |
value | ) |
|
|
static |
Returns next power-of-two size if required by render system, in case RSC_NON_POWER_OF_2_TEXTURES is supported it returns value as-is.
The documentation for this class was generated from the following file: