SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
ImGuiRenderer Class Reference

#include <ImGuiWrapper.h>

Inheritance diagram for ImGuiRenderer:
[legend]

Public Member Functions

 ImGuiRenderer (ImGuiContext *context)
 
virtual ~ImGuiRenderer ()
 
virtual void render (const SLRecti &viewportRect)
 

Protected Attributes

ImGuiContext * _context
 

Detailed Description

ImGuiRenderer is used by ImGuiWrapper to render a custom. We need this interface, as there may be different renderers (e.g. ImGuiRendererOpenGL) and because we want to share a common ImGuiContext over multiple ImGuiWrapper instances.

Definition at line 31 of file ImGuiWrapper.h.

Constructor & Destructor Documentation

◆ ImGuiRenderer()

ImGuiRenderer::ImGuiRenderer ( ImGuiContext *  context)
inline

Definition at line 34 of file ImGuiWrapper.h.

35  : _context(context)
36  {
37  assert(context);
38  }
ImGuiContext * _context
Definition: ImGuiWrapper.h:43

◆ ~ImGuiRenderer()

virtual ImGuiRenderer::~ImGuiRenderer ( )
inlinevirtual

Definition at line 39 of file ImGuiWrapper.h.

39 {}

Member Function Documentation

◆ render()

virtual void ImGuiRenderer::render ( const SLRecti viewportRect)
inlinevirtual

Reimplemented in ImGuiRendererOpenGL.

Definition at line 40 of file ImGuiWrapper.h.

40 {}

Member Data Documentation

◆ _context

ImGuiContext* ImGuiRenderer::_context
protected

Definition at line 43 of file ImGuiWrapper.h.


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