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

#include <imguicontext.h>

Inherits Graphics::GraphicsContext.

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 ResetKeyDownState ()
 reset key events
static void OnViewportResized (const uint framescriptHash, SizeT width, SizeT height)
 called if the window size has changed
static void NewFrame (const Graphics::FrameContext &ctx)
 called before frame
static void EndFrame (const Graphics::FrameContext &ctx)
 called after frame

Private Member Functions

 __DeclarePluginContext ()

Static Private Member Functions

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.

◆ EndFrame()

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

called after frame

◆ HandleInput()

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

handle event

◆ NewFrame()

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

called before frame

◆ OnViewportResized()

void Dynui::ImguiContext::OnViewportResized ( const uint framescriptHash,
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!

◆ ResetKeyDownState()

void Dynui::ImguiContext::ResetKeyDownState ( )
static

reset key events

◆ SetRectSize()

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)


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