Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
native.h
1#ifndef OE_NATIVE_H
2#define OE_NATIVE_H
3
4#include "core/window.h"
5#include "gui/manager.h"
6
7struct nk_context;
8class GLFWwindow;
9
10namespace oe
11{
19 struct Native
20 {
28 static nk_context* getNuklearContext(const oe::gui::Manager& gui)
29 {
30 return gui._ctx.get();
31 }
32
40 static GLFWwindow* getGlfwWindow(const oe::core::Window& window)
41 {
42 return (GLFWwindow*)window._handle;
43 }
44 };
45}
46#endif
Definition window.h:24
Definition manager.h:39
Oxygen Engine common namespace.
Definition cursor.h:8
Class providing native access to underlying handles.
Definition native.h:20
static nk_context * getNuklearContext(const oe::gui::Manager &gui)
Get the Nuklear UI context from a gui::Manager.
Definition native.h:28
static GLFWwindow * getGlfwWindow(const oe::core::Window &window)
Get the GLFW window handle from a core::Window.
Definition native.h:40