Interface for an IMGUI Driver to setup the IMGUI render system.
More...
#include <IIMGUIDriver.h>
|
|
static IIMGUIDriver * | getInstance (irr::IrrlichtDevice *pDevice) |
| This method returns an instance of the driver. If no driver yet exists, it will create a new driver by it's own choice. Otherwise it will simply return the instance of the existing driver. More...
|
|
static bool | deleteInstance (void) |
| Tells the driver, that it is not needed anymore. It decided by it's own if it will delete the single instance or exist further. When the instance was deleted. More...
|
|
|
static irr::IrrlichtDevice * | getIrrDevice (void) |
|
static SIMGUISettings const & | getSettings (void) |
|
static void | setSettings (SIMGUISettings const &rSettings) |
|
Interface for an IMGUI Driver to setup the IMGUI render system.
- Note
- This is a singleton class, since IMGUI is a single instance system.
Definition at line 64 of file IIMGUIDriver.h.
IrrIMGUI::Private::IIMGUIDriver::~IIMGUIDriver |
( |
void |
| ) |
|
|
virtual |
IrrIMGUI::Private::IIMGUIDriver::IIMGUIDriver |
( |
irr::IrrlichtDevice *const |
pDevice | ) |
|
|
protected |
Constructor is protected to prevent an external function to create an instance of this class.
- Parameters
-
pDevice | is a pointer to the Irrlicht Device to use. |
Definition at line 59 of file IIMGUIDriver.cpp.
void IrrIMGUI::Private::IIMGUIDriver::compileFonts |
( |
void |
| ) |
|
Copies the loaded Fonts into GPU memory to use them with the GUI.
Definition at line 243 of file IIMGUIDriver.cpp.
virtual IGUITexture* IrrIMGUI::Private::IIMGUIDriver::createFontTexture |
( |
void |
| ) |
|
|
pure virtual |
virtual IGUITexture* IrrIMGUI::Private::IIMGUIDriver::createTexture |
( |
EColorFormat |
ColorFormat, |
|
|
irr::u8 * |
pPixelData, |
|
|
irr::u32 |
Width, |
|
|
irr::u32 |
Height |
|
) |
| |
|
pure virtual |
virtual IGUITexture* IrrIMGUI::Private::IIMGUIDriver::createTexture |
( |
irr::video::IImage * |
pImage | ) |
|
|
pure virtual |
virtual IGUITexture* IrrIMGUI::Private::IIMGUIDriver::createTexture |
( |
irr::video::ITexture * |
pTexture | ) |
|
|
pure virtual |
bool IrrIMGUI::Private::IIMGUIDriver::deleteInstance |
( |
void |
| ) |
|
|
static |
Tells the driver, that it is not needed anymore. It decided by it's own if it will delete the single instance or exist further. When the instance was deleted.
- Returns
- Returns true, if the instance was destroyed by this calls. If there was not instance, or if the instance has not been destroyed, it will return false.
Definition at line 132 of file IIMGUIDriver.cpp.
virtual void IrrIMGUI::Private::IIMGUIDriver::deleteTexture |
( |
IGUITexture * |
pGUITexture | ) |
|
|
pure virtual |
IIMGUIDriver * IrrIMGUI::Private::IIMGUIDriver::getInstance |
( |
irr::IrrlichtDevice * |
pDevice | ) |
|
|
static |
This method returns an instance of the driver. If no driver yet exists, it will create a new driver by it's own choice. Otherwise it will simply return the instance of the existing driver.
- Parameters
-
pDevice | is a pointer to the Irrlicht Device to use. |
- Returns
- Returns a pointer to the instance.
Definition at line 96 of file IIMGUIDriver.cpp.
irr::IrrlichtDevice * IrrIMGUI::Private::IIMGUIDriver::getIrrDevice |
( |
void |
| ) |
|
|
static |
- Returns
- Returns a pointer to the irrlicht device.
Definition at line 163 of file IIMGUIDriver.cpp.
SIMGUISettings const & IrrIMGUI::Private::IIMGUIDriver::getSettings |
( |
void |
| ) |
|
|
static |
- Returns
- Returns a constant reference to the settings that are currently used.
Definition at line 169 of file IIMGUIDriver.cpp.
void IrrIMGUI::Private::IIMGUIDriver::setSettings |
( |
SIMGUISettings const & |
rSettings | ) |
|
|
static |
- Parameters
-
rSettings | is a reference of the new settings to apply. The settings will applied to the global IMGUI object. |
Definition at line 174 of file IIMGUIDriver.cpp.
void IrrIMGUI::Private::IIMGUIDriver::setupKeyControl |
( |
void |
| ) |
|
|
protected |
Setups the keyboard controls to fit to Irrlicht.
Definition at line 218 of file IIMGUIDriver.cpp.
void IrrIMGUI::Private::IIMGUIDriver::setupMouseControl |
( |
void |
| ) |
|
|
protected |
virtual void IrrIMGUI::Private::IIMGUIDriver::updateFontTexture |
( |
IGUITexture * |
pGUITexture | ) |
|
|
pure virtual |
void IrrIMGUI::Private::IIMGUIDriver::updateSettings |
( |
void |
| ) |
|
|
staticprivate |
virtual void IrrIMGUI::Private::IIMGUIDriver::updateTexture |
( |
IGUITexture * |
pGUITexture, |
|
|
EColorFormat |
ColorFormat, |
|
|
irr::u8 * |
pPixelData, |
|
|
irr::u32 |
Width, |
|
|
irr::u32 |
Height |
|
) |
| |
|
pure virtual |
virtual void IrrIMGUI::Private::IIMGUIDriver::updateTexture |
( |
IGUITexture * |
pGUITexture, |
|
|
irr::video::IImage * |
pImage |
|
) |
| |
|
pure virtual |
virtual void IrrIMGUI::Private::IIMGUIDriver::updateTexture |
( |
IGUITexture * |
pGUITexture, |
|
|
irr::video::ITexture * |
pTexture |
|
) |
| |
|
pure virtual |
irr::u32 IrrIMGUI::Private::IIMGUIDriver::mInstances = 0 |
|
staticprivate |
irr::IrrlichtDevice * IrrIMGUI::Private::IIMGUIDriver::mpDevice = nullptr |
|
staticprivate |
IGUITexture * IrrIMGUI::Private::IIMGUIDriver::mpFontTexture = nullptr |
|
staticprivate |
IIMGUIDriver * IrrIMGUI::Private::IIMGUIDriver::mpInstance = nullptr |
|
staticprivate |
irr::u32 IrrIMGUI::Private::IIMGUIDriver::mTextureInstances = 0 |
|
staticprotected |
The documentation for this class was generated from the following files: