IrrIMGUI
0.3.1
|
Helper functions for OpenGL. More...
Classes | |
class | COpenGLState |
Helper Class to store and restore the OpenGL state. More... | |
Functions | |
void | deleteTextureFromMemory (CGUITexture *pGUITexture) |
Deleted a texture from memory if it uses its own memory. More... | |
ImTextureID | copyTextureIDFromGUIFont (void) |
Copies the current loaded GUI Fonts into the GPU memory. More... | |
ImTextureID | getTextureIDFromIrrlichtTexture (irr::video::ITexture *pTexture) |
Extracts the GPU memory ID for GUI usage from the ITexture object. More... | |
ImTextureID | copyTextureIDFromIrrlichtTexture (irr::video::ITexture *pTexture) |
Copies the content of an ITexture object into the GPU memory. More... | |
ImTextureID | copyTextureIDFromIrrlichtImage (irr::video::IImage *pImage) |
Copies the content of an IImage object into the GPU memory. More... | |
ImTextureID | createTextureIDFromRawData (EColorFormat ColorFormat, irr::u8 *pPixelData, irr::u32 Width, irr::u32 Height) |
Creates an new texture from raw data inside the GPU memory. When the color format does not fit to the OpenGL format, it will be translated automatically. More... | |
ImTextureID | createTextureInMemory (GLint OpenGLColorFormat, irr::u8 *pPixelData, irr::u32 Width, irr::u32 Height) |
Creates an new texture from raw data inside the GPU memory. For this, the Color Format must be already in an OpenGL accepted format! More... | |
void | copyARGBImageToRGBA (irr::u32 *pSource, irr::u32 *pDestination, irr::u32 Width, irr::u32 Height) |
Translates an image in ARGB format (used by Irrlicht) to an image in RGBA format (used by OpenGL). More... | |
GLenum | getGlEnum (GLenum const Which) |
void | restoreGLBit (GLenum const WhichBit, bool const Value) |
Restores an OpenGL Bit. More... | |
Helper functions for OpenGL.
void IrrIMGUI::Private::Driver::OpenGLHelper::copyARGBImageToRGBA | ( | irr::u32 * | pSource, |
irr::u32 * | pDestination, | ||
irr::u32 | Width, | ||
irr::u32 | Height | ||
) |
Translates an image in ARGB format (used by Irrlicht) to an image in RGBA format (used by OpenGL).
pSource | Is a pointer to the source data array. |
pDestination | Is a pointer to the destination data array. |
Width | Is the number of X pixels. |
Height | Is the number of Y pixels. |
Definition at line 566 of file COpenGLIMGUIDriver.cpp.
ImTextureID IrrIMGUI::Private::Driver::OpenGLHelper::copyTextureIDFromGUIFont | ( | void | ) |
Copies the current loaded GUI Fonts into the GPU memory.
Definition at line 746 of file COpenGLIMGUIDriver.cpp.
ImTextureID IrrIMGUI::Private::Driver::OpenGLHelper::copyTextureIDFromIrrlichtImage | ( | irr::video::IImage * | pImage | ) |
Copies the content of an IImage object into the GPU memory.
pImage | Is a pointer to a IImage object. |
Definition at line 647 of file COpenGLIMGUIDriver.cpp.
ImTextureID IrrIMGUI::Private::Driver::OpenGLHelper::copyTextureIDFromIrrlichtTexture | ( | irr::video::ITexture * | pTexture | ) |
Copies the content of an ITexture object into the GPU memory.
pTexture | Is a pointer to a ITexture object. |
Definition at line 673 of file COpenGLIMGUIDriver.cpp.
ImTextureID IrrIMGUI::Private::Driver::OpenGLHelper::createTextureIDFromRawData | ( | EColorFormat | ColorFormat, |
irr::u8 * | pPixelData, | ||
irr::u32 | Width, | ||
irr::u32 | Height | ||
) |
Creates an new texture from raw data inside the GPU memory. When the color format does not fit to the OpenGL format, it will be translated automatically.
ColorFormat | Is the used Color Format inside the raw data. |
pPixelData | Is a pointer to the image array. |
Width | Is the number of X pixels. |
Height | Is the number of Y pixels. |
Definition at line 605 of file COpenGLIMGUIDriver.cpp.
ImTextureID IrrIMGUI::Private::Driver::OpenGLHelper::createTextureInMemory | ( | GLint | OpenGLColorFormat, |
irr::u8 * | pPixelData, | ||
irr::u32 | Width, | ||
irr::u32 | Height | ||
) |
Creates an new texture from raw data inside the GPU memory. For this, the Color Format must be already in an OpenGL accepted format!
OpenGLColorFormat | Is the used OpenGL compatible Color Format inside the raw data. |
pPixelData | Is a pointer to the image array. |
Width | Is the number of X pixels. |
Height | Is the number of Y pixels. |
Definition at line 582 of file COpenGLIMGUIDriver.cpp.
void IrrIMGUI::Private::Driver::OpenGLHelper::deleteTextureFromMemory | ( | CGUITexture * | pGUITexture | ) |
Deleted a texture from memory if it uses its own memory.
pGUITexture | Is a CGUITexture object where the GPU memory should be deleted from. |
Definition at line 762 of file COpenGLIMGUIDriver.cpp.
GLenum IrrIMGUI::Private::Driver::OpenGLHelper::getGlEnum | ( | GLenum const | Which | ) |
Which | is the enum where we want to know the value. |
Definition at line 774 of file COpenGLIMGUIDriver.cpp.
ImTextureID IrrIMGUI::Private::Driver::OpenGLHelper::getTextureIDFromIrrlichtTexture | ( | irr::video::ITexture * | pTexture | ) |
Extracts the GPU memory ID for GUI usage from the ITexture object.
pTexture | Is a pointer to a ITexture object. |
Definition at line 709 of file COpenGLIMGUIDriver.cpp.
void IrrIMGUI::Private::Driver::OpenGLHelper::restoreGLBit | ( | GLenum const | WhichBit, |
bool const | Value | ||
) |
Restores an OpenGL Bit.
WhichBit | is the bit to restore. |
Value | must be true or false, whether it was set or cleared. |
Definition at line 781 of file COpenGLIMGUIDriver.cpp.