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 createCubemapProgram ()
 
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 564 of file imgui.cpp.

◆ create()

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

Definition at line 324 of file imgui.cpp.

◆ createCubemapProgram()

void OcornutImguiContext::createCubemapProgram ( )
inline

Definition at line 528 of file imgui.cpp.

◆ destroy()

void OcornutImguiContext::destroy ( )
inline

Definition at line 539 of file imgui.cpp.

◆ endFrame()

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

Definition at line 575 of file imgui.cpp.

◆ processEvent()

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

Definition at line 319 of file imgui.cpp.

◆ RenderCallback()

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

Definition at line 305 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 584 of file imgui.cpp.

◆ m_cubemapImageProgram

gfx::program_handle OcornutImguiContext::m_cubemapImageProgram

Definition at line 588 of file imgui.cpp.

◆ m_drawCalls

uint64_t OcornutImguiContext::m_drawCalls {}

Definition at line 595 of file imgui.cpp.

◆ m_font

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

Definition at line 593 of file imgui.cpp.

◆ m_fontScale

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

Definition at line 594 of file imgui.cpp.

◆ m_imageProgram

gfx::program_handle OcornutImguiContext::m_imageProgram

Definition at line 587 of file imgui.cpp.

◆ m_imgui

ImGuiContext* OcornutImguiContext::m_imgui {}

Definition at line 583 of file imgui.cpp.

◆ m_keepAlive

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

Definition at line 592 of file imgui.cpp.

◆ m_layout

gfx::vertex_layout OcornutImguiContext::m_layout

Definition at line 585 of file imgui.cpp.

◆ m_program

gfx::program_handle OcornutImguiContext::m_program

Definition at line 586 of file imgui.cpp.

◆ s_tex

gfx::uniform_handle OcornutImguiContext::s_tex

Definition at line 590 of file imgui.cpp.

◆ u_imageLodEnabled

gfx::uniform_handle OcornutImguiContext::u_imageLodEnabled

Definition at line 591 of file imgui.cpp.


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