#include <OgreGLPixelFormat.h>
Static Public Member Functions | |
GLenum | getGLOriginFormat (PixelFormat mFormat) |
Takes the OGRE pixel format and returns the appropriate GL one. | |
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. | |
GLenum | getGLInternalFormat (PixelFormat mFormat) |
Takes the OGRE pixel format and returns the type that must be provided to GL as internal format. | |
GLenum | getClosestGLInternalFormat (PixelFormat mFormat) |
Takes the OGRE pixel format and returns the type that must be provided to GL as internal format. | |
PixelFormat | getClosestOGREFormat (GLenum fmt) |
Function to get the closest matching OGRE format to an internal GL format. | |
size_t | getMaxMipmaps (size_t width, size_t height, size_t depth, PixelFormat format) |
Returns the maximum number of Mipmaps that can be generated until we reach the mininum format possible. | |
size_t | optionalPO2 (size_t 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. |
Definition at line 35 of file OgreGLPixelFormat.h.
|
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. |
|
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.
|
|
Takes the OGRE pixel format and returns the type that must be provided to GL as internal format. GL_NONE if no match exists. |
|
Takes the OGRE pixel format and returns type that must be provided to GL as data type for reading it into the GPU.
|
|
Takes the OGRE pixel format and returns the appropriate GL one.
|
|
Returns the maximum number of Mipmaps that can be generated until we reach the mininum format possible. This does not count the base level.
|
|
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.
|
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:53:04 2006