Nebula
Loading...
Searching...
No Matches
Dynui::ImguiContext Class Reference

#include <imguicontext.h>

Inherits Graphics::GraphicsContext.

Classes

struct  ImguiState
 

Public Member Functions

 ImguiContext ()
 constructor
 
virtual ~ImguiContext ()
 destructor
 
- Public Member Functions inherited from Graphics::GraphicsContext
 GraphicsContext ()
 constructor
 
virtual ~GraphicsContext ()
 destructor
 

Static Public Member Functions

static void Create ()
 Create context.
 
static void Discard ()
 Discard context.
 
static void SetRectSize (SizeT width, SizeT height)
 set the screen dimensions to use when rendering the UI (all vertices will be mapped to these values)
 
static bool HandleInput (const Input::InputEvent &event)
 handle event
 
static void OnWindowResized (const CoreGraphics::WindowId windowId, SizeT width, SizeT height)
 called if the window size has changed
 
static void NewFrame (const Graphics::FrameContext &ctx)
 called before frame
 
static void Render (const Graphics::FrameContext &ctx)
 called before frame
 

Static Public Attributes

static ImguiState state
 

Private Member Functions

 __DeclarePluginContext ()
 

Static Private Member Functions

static void ImguiDrawFunction (const CoreGraphics::CmdBufferId cmdBuf)
 Imgui rendering function.
 
static void RecoverImGuiContextErrors ()
 

Additional Inherited Members

- Static Protected Member Functions inherited from Graphics::GraphicsContext
static void InternalRegisterEntity (const Graphics::GraphicsEntityId id, Graphics::GraphicsContextState &&state)
 
static void InternalDeregisterEntity (const Graphics::GraphicsEntityId id, Graphics::GraphicsContextState &&state)
 
template<class ID_ALLOCATOR >
static void InternalDefragment (ID_ALLOCATOR &allocator, Graphics::GraphicsContextState &&state)
 

Constructor & Destructor Documentation

◆ ImguiContext()

Dynui::ImguiContext::ImguiContext ( )

constructor

◆ ~ImguiContext()

Dynui::ImguiContext::~ImguiContext ( )
virtual

destructor

Member Function Documentation

◆ __DeclarePluginContext()

Dynui::ImguiContext::__DeclarePluginContext ( )
private

◆ Create()

void Dynui::ImguiContext::Create ( )
static

Create context.

◆ Discard()

void Dynui::ImguiContext::Discard ( )
static

Discard context.

◆ HandleInput()

bool Dynui::ImguiContext::HandleInput ( const Input::InputEvent & event)
static

handle event

◆ ImguiDrawFunction()

void Dynui::ImguiContext::ImguiDrawFunction ( const CoreGraphics::CmdBufferId cmdBuf)
staticprivate

Imgui rendering function.

◆ NewFrame()

void Dynui::ImguiContext::NewFrame ( const Graphics::FrameContext & ctx)
static

called before frame

◆ OnWindowResized()

void Dynui::ImguiContext::OnWindowResized ( const CoreGraphics::WindowId windowId,
SizeT width,
SizeT height )
static

called if the window size has changed

◆ RecoverImGuiContextErrors()

void Dynui::ImguiContext::RecoverImGuiContextErrors ( )
staticprivate
Todo
update imgui and uncomment the commented code below!

◆ Render()

void Dynui::ImguiContext::Render ( const Graphics::FrameContext & ctx)
static

called before frame

◆ SetRectSize()

static void Dynui::ImguiContext::SetRectSize ( SizeT width,
SizeT height )
static

set the screen dimensions to use when rendering the UI (all vertices will be mapped to these values)

Member Data Documentation

◆ state

ImguiContext::ImguiState Dynui::ImguiContext::state
static

The documentation for this class was generated from the following files: