PeriDyno 1.0.0
Loading...
Searching...
No Matches
QtImGui::ImGuiRenderer Class Reference

#include <ImGuiRenderer.h>

Inheritance diagram for QtImGui::ImGuiRenderer:
Collaboration diagram for QtImGui::ImGuiRenderer:

Public Member Functions

void initialize (WindowWrapper *window)
 
void newFrame ()
 
void render ()
 
bool eventFilter (QObject *watched, QEvent *event)
 
 ImGuiRenderer ()
 
 ~ImGuiRenderer ()
 

Static Public Member Functions

static ImGuiRendererinstance ()
 

Private Member Functions

void onMousePressedChange (QMouseEvent *event)
 
void onWheel (QWheelEvent *event)
 
void onKeyPressRelease (QKeyEvent *event)
 
void updateCursorShape (const ImGuiIO &io)
 
void setCursorPos (const ImGuiIO &io)
 
void renderDrawList (ImDrawData *draw_data)
 
bool createFontsTexture ()
 
bool createDeviceObjects ()
 

Private Attributes

std::unique_ptr< WindowWrapperm_window
 
double g_Time = 0.0f
 
bool g_MousePressed [3] = { false, false, false }
 
float g_MouseWheel
 
float g_MouseWheelH
 
GLuint g_FontTexture = 0
 
int g_ShaderHandle = 0
 
int g_VertHandle = 0
 
int g_FragHandle = 0
 
int g_AttribLocationTex = 0
 
int g_AttribLocationProjMtx = 0
 
int g_AttribLocationPosition = 0
 
int g_AttribLocationUV = 0
 
int g_AttribLocationColor = 0
 
unsigned int g_VboHandle = 0
 
unsigned int g_VaoHandle = 0
 
unsigned int g_ElementsHandle = 0
 
ImGuiContext * g_ctx = nullptr
 

Detailed Description

Definition at line 53 of file ImGuiRenderer.h.

Constructor & Destructor Documentation

◆ ImGuiRenderer()

QtImGui::ImGuiRenderer::ImGuiRenderer ( )

Definition at line 381 of file ImGuiRenderer.cpp.

Here is the caller graph for this function:

◆ ~ImGuiRenderer()

QtImGui::ImGuiRenderer::~ImGuiRenderer ( )

Definition at line 386 of file ImGuiRenderer.cpp.

Member Function Documentation

◆ createDeviceObjects()

bool QtImGui::ImGuiRenderer::createDeviceObjects ( )
private

Definition at line 236 of file ImGuiRenderer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createFontsTexture()

bool QtImGui::ImGuiRenderer::createFontsTexture ( )
private

Definition at line 207 of file ImGuiRenderer.cpp.

Here is the caller graph for this function:

◆ eventFilter()

bool QtImGui::ImGuiRenderer::eventFilter ( QObject * watched,
QEvent * event )

Definition at line 516 of file ImGuiRenderer.cpp.

Here is the call graph for this function:

◆ initialize()

void QtImGui::ImGuiRenderer::initialize ( WindowWrapper * window)

Definition at line 68 of file ImGuiRenderer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ instance()

ImGuiRenderer * QtImGui::ImGuiRenderer::instance ( )
static

Definition at line 539 of file ImGuiRenderer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ newFrame()

void QtImGui::ImGuiRenderer::newFrame ( )

Definition at line 317 of file ImGuiRenderer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onKeyPressRelease()

void QtImGui::ImGuiRenderer::onKeyPressRelease ( QKeyEvent * event)
private

Definition at line 424 of file ImGuiRenderer.cpp.

Here is the caller graph for this function:

◆ onMousePressedChange()

void QtImGui::ImGuiRenderer::onMousePressedChange ( QMouseEvent * event)
private

Definition at line 392 of file ImGuiRenderer.cpp.

Here is the caller graph for this function:

◆ onWheel()

void QtImGui::ImGuiRenderer::onWheel ( QWheelEvent * event)
private

Definition at line 399 of file ImGuiRenderer.cpp.

Here is the caller graph for this function:

◆ render()

void QtImGui::ImGuiRenderer::render ( )

Definition at line 372 of file ImGuiRenderer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ renderDrawList()

void QtImGui::ImGuiRenderer::renderDrawList ( ImDrawData * draw_data)
private

Definition at line 106 of file ImGuiRenderer.cpp.

Here is the caller graph for this function:

◆ setCursorPos()

void QtImGui::ImGuiRenderer::setCursorPos ( const ImGuiIO & io)
private

Definition at line 501 of file ImGuiRenderer.cpp.

Here is the caller graph for this function:

◆ updateCursorShape()

void QtImGui::ImGuiRenderer::updateCursorShape ( const ImGuiIO & io)
private

Definition at line 464 of file ImGuiRenderer.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ g_AttribLocationColor

int QtImGui::ImGuiRenderer::g_AttribLocationColor = 0
private

Definition at line 87 of file ImGuiRenderer.h.

◆ g_AttribLocationPosition

int QtImGui::ImGuiRenderer::g_AttribLocationPosition = 0
private

Definition at line 87 of file ImGuiRenderer.h.

◆ g_AttribLocationProjMtx

int QtImGui::ImGuiRenderer::g_AttribLocationProjMtx = 0
private

Definition at line 86 of file ImGuiRenderer.h.

◆ g_AttribLocationTex

int QtImGui::ImGuiRenderer::g_AttribLocationTex = 0
private

Definition at line 86 of file ImGuiRenderer.h.

◆ g_AttribLocationUV

int QtImGui::ImGuiRenderer::g_AttribLocationUV = 0
private

Definition at line 87 of file ImGuiRenderer.h.

◆ g_ctx

ImGuiContext* QtImGui::ImGuiRenderer::g_ctx = nullptr
private

Definition at line 90 of file ImGuiRenderer.h.

◆ g_ElementsHandle

unsigned int QtImGui::ImGuiRenderer::g_ElementsHandle = 0
private

Definition at line 88 of file ImGuiRenderer.h.

◆ g_FontTexture

GLuint QtImGui::ImGuiRenderer::g_FontTexture = 0
private

Definition at line 84 of file ImGuiRenderer.h.

◆ g_FragHandle

int QtImGui::ImGuiRenderer::g_FragHandle = 0
private

Definition at line 85 of file ImGuiRenderer.h.

◆ g_MousePressed

bool QtImGui::ImGuiRenderer::g_MousePressed[3] = { false, false, false }
private

Definition at line 81 of file ImGuiRenderer.h.

◆ g_MouseWheel

float QtImGui::ImGuiRenderer::g_MouseWheel
private

Definition at line 82 of file ImGuiRenderer.h.

◆ g_MouseWheelH

float QtImGui::ImGuiRenderer::g_MouseWheelH
private

Definition at line 83 of file ImGuiRenderer.h.

◆ g_ShaderHandle

int QtImGui::ImGuiRenderer::g_ShaderHandle = 0
private

Definition at line 85 of file ImGuiRenderer.h.

◆ g_Time

double QtImGui::ImGuiRenderer::g_Time = 0.0f
private

Definition at line 80 of file ImGuiRenderer.h.

◆ g_VaoHandle

unsigned int QtImGui::ImGuiRenderer::g_VaoHandle = 0
private

Definition at line 88 of file ImGuiRenderer.h.

◆ g_VboHandle

unsigned int QtImGui::ImGuiRenderer::g_VboHandle = 0
private

Definition at line 88 of file ImGuiRenderer.h.

◆ g_VertHandle

int QtImGui::ImGuiRenderer::g_VertHandle = 0
private

Definition at line 85 of file ImGuiRenderer.h.

◆ m_window

std::unique_ptr<WindowWrapper> QtImGui::ImGuiRenderer::m_window
private

Definition at line 79 of file ImGuiRenderer.h.


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