 |
Blamite Game Engine - blam!
00388.06.24.23.2301.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
4 #include <OGRE/OgrePrerequisites.h>
6 #include <OGRE/OgreRenderQueueListener.h>
7 #include <OGRE/OgreSingleton.h>
8 #include <OGRE/OgreTextureGpu.h>
9 #include <OGRE/OgreResourceGroupManager.h>
10 #include <OGRE/OgreRenderable.h>
11 #include <OGRE/OgreRenderOperation.h>
22 class ImguiManager :
public RenderQueueListener,
public Singleton<ImguiManager>
34 virtual void init(Ogre::SceneManager* mgr);
36 virtual void newFrame(
float deltaTime,
const Ogre::Rect& windowRect);
63 virtual const LightList&
getLights(
void)
const;
IMGUI_API ImFont * AddFontDefault(const ImFontConfig *font_cfg=NULL)
Definition: imgui_draw.cpp:1648
bool KeyAlt
Definition: imgui.h:1415
ImVector< ImDrawVert > VtxBuffer
Definition: imgui.h:1886
bool KeySuper
Definition: imgui.h:1416
ImguiManager()
Definition: ogre2_imgui_manager.cpp:193
IMGUI_API void DestroyContext(ImGuiContext *ctx=NULL)
Definition: imgui.cpp:3290
float x
Definition: imgui.h:194
bool MouseDown[5]
Definition: imgui.h:1410
std::vector< CodePointRange > mCodePointRanges
Definition: ogre2_imgui_manager.h:82
BlamOgreRenderSystemType render_system_type
Definition: imgui_impl_ogre2.cpp:14
@ ImGuiKey_Home
Definition: imgui.h:944
int width
Definition: bgfx.cpp:19
@ ImGuiKey_PageDown
Definition: imgui.h:943
OgreBites::InputListener * getInputListener()
Definition: ogre2_imgui_manager.cpp:214
unsigned short uint16_t
Definition: stdint.h:125
float z
Definition: imgui.h:194
ImFont * addFont(const String &name, const String &group OGRE_RESOURCE_GROUP_INIT)
add font from ogre .fontdef file must be called before init()
Definition: ogre2_imgui_manager.cpp:348
IMGUI_API void AddInputCharacter(unsigned int c)
Definition: imgui.cpp:1259
Real getSquaredViewDepth(const Camera *cam) const
Definition: ogre2_imgui_manager.h:58
void createFontTexture()
Definition: ogre2_imgui_manager.cpp:386
IMGUI_API ImFont * AddFontFromMemoryTTF(void *font_data, int font_size, float size_pixels, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
Definition: imgui_draw.cpp:1691
Matrix4 mXform
Definition: ogre2_imgui_manager.h:66
ImVec2 MousePos
Definition: imgui.h:1409
char Name[40]
Definition: imgui.h:2023
ImGUIRenderable()
Definition: ogre2_imgui_manager.cpp:426
virtual const MaterialPtr & getMaterial(void) const
Definition: ogre2_imgui_manager.h:60
MaterialPtr mMaterial
Definition: ogre2_imgui_manager.h:65
int CmdListsCount
Definition: imgui.h:1983
bool WantCaptureMouse
Definition: imgui.h:1429
@ SDLK_UP
Definition: SdlEmulationLayer.h:485
ImVector< ImDrawCmd > CmdBuffer
Definition: imgui.h:1884
IMGUI_API void GetTexDataAsRGBA32(unsigned char **out_pixels, int *out_width, int *out_height, int *out_bytes_per_pixel=NULL)
Definition: imgui_draw.cpp:1576
Definition: ogre2_imgui_manager.h:13
@ ImGuiKey_UpArrow
Definition: imgui.h:940
float x
Definition: imgui.h:181
bool KeysDown[512]
Definition: imgui.h:1417
ImVec4 ClipRect
Definition: imgui.h:1794
Definition: ogre2_imgui_manager.h:22
~ImguiManager()
Definition: ogre2_imgui_manager.cpp:198
bool empty() const
Definition: imgui.h:1244
@ String
Represents a std::string.
Definition: globals.h:48
ImFontAtlas * Fonts
Definition: imgui.h:1359
@ ImGuiKey_V
Definition: imgui.h:955
bool KeyCtrl
Definition: imgui.h:1413
IMGUI_API void Render()
Definition: imgui.cpp:4248
virtual void getRenderOperation(RenderOperation &op)
Definition: ogre2_imgui_manager.h:62
@ ImGuiKey_LeftArrow
Definition: imgui.h:938
bool KeyShift
Definition: imgui.h:1414
ImVector< ImFont * > Fonts
Definition: imgui.h:2167
ImDrawList ** CmdLists
Definition: imgui.h:1982
Definition: ogre2_imgui_manager.h:48
@ SDLK_PAGEUP
Definition: SdlEmulationLayer.h:478
Add a fourth parameter to bake specific font ranges NULL
Definition: README.txt:57
@ SDLK_RIGHT
Definition: SdlEmulationLayer.h:482
IMGUI_API ImGuiIO & GetIO()
Definition: imgui.cpp:3300
@ SDLK_LSHIFT
Definition: SdlEmulationLayer.h:608
SceneManager * mSceneMgr
Definition: ogre2_imgui_manager.h:74
bool WantCaptureKeyboard
Definition: imgui.h:1430
virtual void getWorldTransforms(Matrix4 *xform) const
Definition: ogre2_imgui_manager.h:61
virtual void init(Ogre::SceneManager *mgr)
Definition: ogre2_imgui_manager.cpp:204
ImVector< ImDrawIdx > IdxBuffer
Definition: imgui.h:1885
static void createSingleton()
Definition: ogre2_imgui_manager.cpp:175
@ ImGuiKey_End
Definition: imgui.h:945
void updateVertexData(const ImVector< ImDrawVert > &vtxBuf, const ImVector< ImDrawIdx > &idxBuf)
Definition: ogre2_imgui_manager.cpp:470
ImTextureID TextureId
Definition: imgui.h:1795
virtual void newFrame(float deltaTime, const Ogre::Rect &windowRect)
Definition: ogre2_imgui_manager.cpp:408
@ ImGuiKey_Enter
Definition: imgui.h:950
virtual void renderQueueEnded(uint8 queueGroupId, const String &invocation, bool &repeatThisInvocation)
Definition: ogre2_imgui_manager.cpp:226
@ SDLK_LEFT
Definition: SdlEmulationLayer.h:483
@ ImGuiKey_Backspace
Definition: imgui.h:948
@ ImGuiKey_C
Definition: imgui.h:954
int size_in_bytes() const
Definition: imgui.h:1246
@ ImGuiKey_RightArrow
Definition: imgui.h:939
int size() const
Definition: imgui.h:1245
@ SDLK_DOWN
Definition: SdlEmulationLayer.h:484
unsigned short ImWchar
Definition: imgui.h:131
@ ImGuiKey_A
Definition: imgui.h:953
IMGUI_API ImDrawData * GetDrawData()
Definition: imgui.cpp:3313
float DeltaTime
Definition: imgui.h:1347
@ ImGuiKey_Z
Definition: imgui.h:958
int height
Definition: bgfx.cpp:20
float w
Definition: imgui.h:194
void createMaterial()
Definition: ogre2_imgui_manager.cpp:326
~ImGUIRenderable()
Definition: ogre2_imgui_manager.cpp:464
float y
Definition: imgui.h:181
@ ImGuiKey_Space
Definition: imgui.h:949
IMGUI_API ImGuiContext * CreateContext(ImFontAtlas *shared_font_atlas=NULL)
Definition: imgui.cpp:3281
std::vector< ImWchar > CodePointRange
Definition: ogre2_imgui_manager.h:81
@ ImGuiKey_PageUp
Definition: imgui.h:942
@ ImGuiKey_Delete
Definition: imgui.h:947
@ ImGuiKey_X
Definition: imgui.h:956
@ ImGuiKey_DownArrow
Definition: imgui.h:941
virtual const LightList & getLights(void) const
Definition: ogre2_imgui_manager.cpp:492
bool mFrameEnded
Definition: ogre2_imgui_manager.h:79
Definition: ogre2_imgui_manager.h:18
float y
Definition: imgui.h:194
const IMGUI_API ImWchar * GetGlyphRangesDefault()
Definition: imgui_draw.cpp:2225
void initImGUIRenderable(void)
Definition: ogre2_imgui_manager.cpp:435
IMGUI_API void NewFrame()
Definition: imgui.cpp:3689
int KeyMap[ImGuiKey_COUNT]
Definition: imgui.h:1354
static ImguiManager & getSingleton(void)
Definition: ogre2_imgui_manager.cpp:187
static ImguiManager * getSingletonPtr(void)
Definition: ogre2_imgui_manager.cpp:182
int Size
Definition: imgui.h:1229
@ ImGuiKey_Y
Definition: imgui.h:957
ImGUIRenderable mRenderable
Definition: ogre2_imgui_manager.h:76
io.Fonts->AddFontFromMemoryCompressedTTF(compressed_data, compressed_data_size, size_pixels,...) font
Definition: README.txt:86
unsigned int ElemCount
Definition: imgui.h:1793
RenderOperation mRenderOp
Definition: ogre2_imgui_manager.h:67
float MouseWheel
Definition: imgui.h:1411
T * Data
Definition: imgui.h:1231
@ ImGuiKey_Tab
Definition: imgui.h:937
@ ImGuiKey_Escape
Definition: imgui.h:951
ImVec2 DisplaySize
Definition: imgui.h:1346
TexturePtr mFontTex
Definition: ogre2_imgui_manager.h:77
@ SDLK_PAGEDOWN
Definition: SdlEmulationLayer.h:481