Unravel Engine C++ Reference
Loading...
Searching...
No Matches
imgui.h File Reference

Go to the source code of this file.

Classes

struct  ImGui::Font
 
union  ImGui::ImTexture
 

Namespaces

namespace  bx
 
namespace  ImGui
 

Macros

#define IMGUI_FLAGS_NONE   UINT8_C(1 << 0)
 
#define IMGUI_FLAGS_ALPHA_BLEND   UINT8_C(1 << 1)
 
#define IMGUI_FLAGS_FLIP_UV   UINT8_C(1 << 2)
 
#define IMGUI_FLAGS_CUBEMAP   UINT8_C(1 << 3)
 

Functions

uint32_t imguiRGBA (uint8_t _r, uint8_t _g, uint8_t _b, uint8_t _a=255)
 
void imguiCreate (unravel::render_window *window, float _fontSize=18.0f, bx::AllocatorI *_allocator=NULL)
 
void imguiDestroy ()
 
void imguiProcessEvent (os::event &e)
 
void imguiBeginFrame (float dt)
 
void imguiEndFrame (gfx::view_id id)
 
uint64_t ImGui::GetDrawCalls ()
 
void ImGui::PushFont (Font::Enum _font)
 
ImFont * ImGui::GetFont (Font::Enum _font)
 
void ImGui::PushWindowFontSize (int size)
 
void ImGui::PopWindowFontSize ()
 
void ImGui::PushWindowFontScale (float scale)
 
void ImGui::PopWindowFontScale ()
 
void ImGui::KeepAliveOneFrame (const gfx::texture::ptr &tex)
 
ImTexture ImGui::ToTex (gfx::texture_handle _handle, uint8_t _index, gfx::program_handle _phandle, uint8_t _mip=0, uint8_t _flags=IMGUI_FLAGS_ALPHA_BLEND)
 
ImTextureID ImGui::ToId (gfx::texture_handle _handle, uint8_t _mip=0, uint8_t _flags=IMGUI_FLAGS_ALPHA_BLEND)
 
ImTextureID ImGui::ToId (const gfx::texture &_handle, uint8_t _mip=0, uint8_t _flags=IMGUI_FLAGS_ALPHA_BLEND)
 
ImTextureID ImGui::ToId (const gfx::texture::ptr &_handle, uint8_t _mip=0, uint8_t _flags=IMGUI_FLAGS_ALPHA_BLEND)
 
ImTextureID ImGui::ToId (const asset_handle< gfx::texture > &_handle, uint8_t _mip=0, uint8_t _flags=IMGUI_FLAGS_ALPHA_BLEND)
 
ImVec2 ImGui::GetSize (const gfx::texture &tex, const ImVec2 &fallback={})
 
ImVec2 ImGui::GetSize (const gfx::texture::ptr &tex, const ImVec2 &fallback={})
 
ImVec2 ImGui::GetSize (const asset_handle< gfx::texture > &_handle, const ImVec2 &fallback={})
 
void ImGui::Image (gfx::texture_handle _handle, uint8_t _mip, uint8_t _flags, const ImVec2 &_size, const ImVec2 &_uv0=ImVec2(0.0f, 0.0f), const ImVec2 &_uv1=ImVec2(1.0f, 1.0f))
 
void ImGui::Image (gfx::texture_handle _handle, const ImVec2 &_size, const ImVec2 &_uv0=ImVec2(0.0f, 0.0f), const ImVec2 &_uv1=ImVec2(1.0f, 1.0f))
 
bool ImGui::ImageButton (gfx::texture_handle _handle, uint8_t _mip, uint8_t _flags, const ImVec2 &_size, const ImVec2 &_uv0=ImVec2(0.0f, 0.0f), const ImVec2 &_uv1=ImVec2(1.0f, 1.0f), const ImVec4 &_bgCol=ImVec4(0.0f, 0.0f, 0.0f, 0.0f), const ImVec4 &_tintCol=ImVec4(1.0f, 1.0f, 1.0f, 1.0f))
 
bool ImGui::ImageButton (gfx::texture_handle _handle, const ImVec2 &_size, const ImVec2 &_uv0=ImVec2(0.0f, 0.0f), const ImVec2 &_uv1=ImVec2(1.0f, 1.0f), const ImVec4 &_bgCol=ImVec4(0.0f, 0.0f, 0.0f, 0.0f), const ImVec4 &_tintCol=ImVec4(1.0f, 1.0f, 1.0f, 1.0f))
 
void ImGui::NextLine ()
 
bool ImGui::MouseOverArea ()
 
bool ImGui::IsReadonly ()
 
void ImGui::PushReadonly (bool _enabled)
 
void ImGui::PopReadonly ()
 
void ImGui::PushEnabled (bool _enabled)
 
void ImGui::PopEnabled ()
 

Macro Definition Documentation

◆ IMGUI_FLAGS_ALPHA_BLEND

#define IMGUI_FLAGS_ALPHA_BLEND   UINT8_C(1 << 1)

Definition at line 40 of file imgui.h.

◆ IMGUI_FLAGS_CUBEMAP

#define IMGUI_FLAGS_CUBEMAP   UINT8_C(1 << 3)

Definition at line 42 of file imgui.h.

◆ IMGUI_FLAGS_FLIP_UV

#define IMGUI_FLAGS_FLIP_UV   UINT8_C(1 << 2)

Definition at line 41 of file imgui.h.

◆ IMGUI_FLAGS_NONE

#define IMGUI_FLAGS_NONE   UINT8_C(1 << 0)

Definition at line 39 of file imgui.h.

Function Documentation

◆ imguiBeginFrame()

void imguiBeginFrame ( float dt)

Definition at line 603 of file imgui.cpp.

◆ imguiCreate()

void imguiCreate ( unravel::render_window * window,
float _fontSize = 18.0f,
bx::AllocatorI * _allocator = NULL )

Definition at line 588 of file imgui.cpp.

◆ imguiDestroy()

void imguiDestroy ( )

Definition at line 593 of file imgui.cpp.

◆ imguiEndFrame()

void imguiEndFrame ( gfx::view_id id)

Definition at line 609 of file imgui.cpp.

◆ imguiProcessEvent()

void imguiProcessEvent ( os::event & e)

Definition at line 598 of file imgui.cpp.

◆ imguiRGBA()

uint32_t imguiRGBA ( uint8_t _r,
uint8_t _g,
uint8_t _b,
uint8_t _a = 255 )
inline

Definition at line 19 of file imgui.h.