IrrIMGUI
0.3.1
|
Functions that help adapting Irrlicht logic to IMGUI. More...
Functions | |
irr::video::SColor | getColorFromImGuiColor (irr::u32 ImGuiColor) |
Translates an IMGUI Color to an Irrlicht Color. More... | |
void | copyImGuiVertices2IrrlichtVertices (ImVector< ImDrawVert > &rIMGUIVertexBuffer, irr::video::S3DVertex *pIrrlichtVertex, irr::core::vector3df const &rOffset) |
Copies a list of IMGUI vertices to a list of Irrlicht Vertices. More... | |
ImTextureID | copyTextureIDFromGUIFont (irr::video::IVideoDriver *pIrrDriver) |
Creates a Texture object from the currently loaded Fonts. More... | |
ImTextureID | copyTextureIDFromRawData (irr::video::IVideoDriver *pIrrDriver, EColorFormat ColorFormat, irr::u8 *pPixelData, irr::u32 Width, irr::u32 Height) |
Created a Texture object from raw data. More... | |
ImTextureID | copyTextureIDFromImage (irr::video::IVideoDriver *pIrrDriver, irr::video::IImage *pImage) |
Creates a Texture object from the currently loaded Fonts. More... | |
void | deleteTextureID (irr::video::IVideoDriver *pIrrDriver, CGUITexture *pGUITexture) |
Deleted the memory from this texture ID. More... | |
void | applyMovingClippingPlaneWorkaround (irr::video::IVideoDriver *pIrrDriver) |
Applies a workaround for an Irrlicht issue with moving clipping planes. More... | |
void | setupStandardGUIMaterial (irr::video::SMaterial &rMaterial, irr::video::ITexture *pTexture) |
Sets the standard GUI material settings. More... | |
void | applyClippingRect (irr::video::IVideoDriver *pIrrDriver, ImVec4 &rClippingRect) |
Apples a clipping rectangle. Outside of this rectangle nothing is rendered. More... | |
void | disableClippingRect (irr::video::IVideoDriver *pIrrDriver) |
Disables the clipping rectangle. More... | |
Variables | |
static irr::u8 *const | IMGUI_FONT_ID = nullptr |
A magic number for the default font ID IMGUI. More... | |
static irr::u32 | TextureCreationID = 0 |
This is used to create an unique texture name. More... | |
static bool | IsTrilinearFilterEnabled = false |
Indicates, if trilinear filter should be enabled for textures. More... | |
Functions that help adapting Irrlicht logic to IMGUI.
void IrrIMGUI::Private::Driver::IrrlichtHelper::applyClippingRect | ( | irr::video::IVideoDriver * | pIrrDriver, |
ImVec4 & | rClippingRect | ||
) |
Apples a clipping rectangle. Outside of this rectangle nothing is rendered.
pIrrDriver | Is a pointer to the Irrlicht driver object. |
rClippingRect | Is the IMGUI clipping rect to apply. |
Definition at line 710 of file CIrrlichtIMGUIDriver.cpp.
void IrrIMGUI::Private::Driver::IrrlichtHelper::applyMovingClippingPlaneWorkaround | ( | irr::video::IVideoDriver * | pIrrDriver | ) |
Applies a workaround for an Irrlicht issue with moving clipping planes.
pIrrDriver | Is a pointer to the Irrlicht driver object. |
Definition at line 635 of file CIrrlichtIMGUIDriver.cpp.
void IrrIMGUI::Private::Driver::IrrlichtHelper::copyImGuiVertices2IrrlichtVertices | ( | ImVector< ImDrawVert > & | rIMGUIVertexBuffer, |
irr::video::S3DVertex * | pIrrlichtVertex, | ||
irr::core::vector3df const & | rOffset | ||
) |
Copies a list of IMGUI vertices to a list of Irrlicht Vertices.
rIMGUIVertexBuffer | Is an IMGUI Vertex-Buffer object. |
pIrrlichtVertex | Is a pointer to an Irrlicht Vertex Array. |
rOffset | Is an offset that is applied to every vertex. |
Definition at line 493 of file CIrrlichtIMGUIDriver.cpp.
ImTextureID IrrIMGUI::Private::Driver::IrrlichtHelper::copyTextureIDFromGUIFont | ( | irr::video::IVideoDriver * | pIrrDriver | ) |
Creates a Texture object from the currently loaded Fonts.
pIrrDriver | Is a pointer to the Irrlicht driver object. |
Definition at line 583 of file CIrrlichtIMGUIDriver.cpp.
ImTextureID IrrIMGUI::Private::Driver::IrrlichtHelper::copyTextureIDFromImage | ( | irr::video::IVideoDriver * | pIrrDriver, |
irr::video::IImage * | pImage | ||
) |
Creates a Texture object from the currently loaded Fonts.
pIrrDriver | Is a pointer to the Irrlicht driver object. |
pImage | Is a pointer to an Irrlicht IImage object. |
Definition at line 598 of file CIrrlichtIMGUIDriver.cpp.
ImTextureID IrrIMGUI::Private::Driver::IrrlichtHelper::copyTextureIDFromRawData | ( | irr::video::IVideoDriver * | pIrrDriver, |
EColorFormat | ColorFormat, | ||
irr::u8 * | pPixelData, | ||
irr::u32 | Width, | ||
irr::u32 | Height | ||
) |
Created a Texture object from raw data.
pIrrDriver | Is a pointer to the Irrlicht driver object. |
ColorFormat | Is the format of the Color of every Pixel. |
pPixelData | Is a pointer to the pixel array. |
Width | Is the number of Pixels in X direction. |
Height | Is the number of Pixels in Y direction. |
Definition at line 508 of file CIrrlichtIMGUIDriver.cpp.
void IrrIMGUI::Private::Driver::IrrlichtHelper::deleteTextureID | ( | irr::video::IVideoDriver * | pIrrDriver, |
CGUITexture * | pGUITexture | ||
) |
Deleted the memory from this texture ID.
pIrrDriver | Is a pointer to the Irrlicht driver object. |
pGUITexture | is a pointer to the texture object. |
Definition at line 616 of file CIrrlichtIMGUIDriver.cpp.
void IrrIMGUI::Private::Driver::IrrlichtHelper::disableClippingRect | ( | irr::video::IVideoDriver * | pIrrDriver | ) |
Disables the clipping rectangle.
pIrrDriver | Is a pointer to the Irrlicht driver object. |
Definition at line 724 of file CIrrlichtIMGUIDriver.cpp.
irr::video::SColor IrrIMGUI::Private::Driver::IrrlichtHelper::getColorFromImGuiColor | ( | irr::u32 | ImGuiColor | ) |
Translates an IMGUI Color to an Irrlicht Color.
ImGuiColor | is the u32 Color value from IMGUI. |
Definition at line 481 of file CIrrlichtIMGUIDriver.cpp.
void IrrIMGUI::Private::Driver::IrrlichtHelper::setupStandardGUIMaterial | ( | irr::video::SMaterial & | rMaterial, |
irr::video::ITexture * | pTexture | ||
) |
Sets the standard GUI material settings.
rMaterial | Is a reference to the material where the settings should be applied to. |
pTexture | Is the texture, that should be used. |
Definition at line 692 of file CIrrlichtIMGUIDriver.cpp.
|
static |
A magic number for the default font ID IMGUI.
Definition at line 64 of file CIrrlichtIMGUIDriver.cpp.
|
static |
Indicates, if trilinear filter should be enabled for textures.
Definition at line 70 of file CIrrlichtIMGUIDriver.cpp.
|
static |
This is used to create an unique texture name.
Definition at line 67 of file CIrrlichtIMGUIDriver.cpp.