Unravel Engine C++ Reference
Loading...
Searching...
No Matches
OcornutImguiContext Struct Reference

Public Member Functions

void renderData (gfx::view_id id, ImDrawData *_drawData)
 
void RenderCallback (unravel::render_window *window, ImGuiViewport *viewport, void *)
 
void processEvent (os::event &e)
 
void create (unravel::render_window *window, float _fontSize, bx::AllocatorI *_allocator)
 
void destroy ()
 
void beginFrame (float dt)
 
void endFrame (gfx::view_id id)
 

Public Attributes

ImGuiContext * m_imgui {}
 
bx::AllocatorI * m_allocator {}
 
gfx::vertex_layout m_layout
 
gfx::program_handle m_program
 
gfx::program_handle m_imageProgram
 
gfx::program_handle m_cubemapImageProgram
 
gfx::uniform_handle s_tex
 
gfx::uniform_handle u_imageLodEnabled
 
std::vector< gfx::texture::ptrm_keepAlive
 
ImFont * m_font [ImGui::Font::Count]
 
std::vector< float > m_fontScale {}
 
uint64_t m_drawCalls {}
 

Detailed Description

Definition at line 134 of file imgui.cpp.

Member Function Documentation

◆ beginFrame()

void OcornutImguiContext::beginFrame ( float dt)
inline

Definition at line 540 of file imgui.cpp.

◆ create()

void OcornutImguiContext::create ( unravel::render_window * window,
float _fontSize,
bx::AllocatorI * _allocator )
inline

Definition at line 322 of file imgui.cpp.

◆ destroy()

void OcornutImguiContext::destroy ( )
inline

Definition at line 518 of file imgui.cpp.

◆ endFrame()

void OcornutImguiContext::endFrame ( gfx::view_id id)
inline

Definition at line 551 of file imgui.cpp.

◆ processEvent()

void OcornutImguiContext::processEvent ( os::event & e)
inline

Definition at line 317 of file imgui.cpp.

◆ RenderCallback()

void OcornutImguiContext::RenderCallback ( unravel::render_window * window,
ImGuiViewport * viewport,
void *  )
inline

Definition at line 303 of file imgui.cpp.

◆ renderData()

void OcornutImguiContext::renderData ( gfx::view_id id,
ImDrawData * _drawData )
inline

Definition at line 136 of file imgui.cpp.

Member Data Documentation

◆ m_allocator

bx::AllocatorI* OcornutImguiContext::m_allocator {}

Definition at line 560 of file imgui.cpp.

◆ m_cubemapImageProgram

gfx::program_handle OcornutImguiContext::m_cubemapImageProgram

Definition at line 564 of file imgui.cpp.

◆ m_drawCalls

uint64_t OcornutImguiContext::m_drawCalls {}

Definition at line 571 of file imgui.cpp.

◆ m_font

ImFont* OcornutImguiContext::m_font[ImGui::Font::Count]

Definition at line 569 of file imgui.cpp.

◆ m_fontScale

std::vector<float> OcornutImguiContext::m_fontScale {}

Definition at line 570 of file imgui.cpp.

◆ m_imageProgram

gfx::program_handle OcornutImguiContext::m_imageProgram

Definition at line 563 of file imgui.cpp.

◆ m_imgui

ImGuiContext* OcornutImguiContext::m_imgui {}

Definition at line 559 of file imgui.cpp.

◆ m_keepAlive

std::vector<gfx::texture::ptr> OcornutImguiContext::m_keepAlive

Definition at line 568 of file imgui.cpp.

◆ m_layout

gfx::vertex_layout OcornutImguiContext::m_layout

Definition at line 561 of file imgui.cpp.

◆ m_program

gfx::program_handle OcornutImguiContext::m_program

Definition at line 562 of file imgui.cpp.

◆ s_tex

gfx::uniform_handle OcornutImguiContext::s_tex

Definition at line 566 of file imgui.cpp.

◆ u_imageLodEnabled

gfx::uniform_handle OcornutImguiContext::u_imageLodEnabled

Definition at line 567 of file imgui.cpp.


The documentation for this struct was generated from the following file: