Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::Native Struct Reference

Class providing native access to underlying handles. More...

#include <OxygenEngine/native.h>

Static Public Member Functions

static nk_context * getNuklearContext (const oe::gui::Manager &gui)
 Get the Nuklear UI context from a gui::Manager.
 
static GLFWwindow * getGlfwWindow (const oe::core::Window &window)
 Get the GLFW window handle from a core::Window.
 

Detailed Description

Class providing native access to underlying handles.

Remarks
Those functions should not be considered as part of the Oxygen Engine API as it relies on internal workings that might change any time. Use at your own risk!
Warning
Actions done with those handles might not be synced with Oxygen Engine internal state.

Member Function Documentation

◆ getGlfwWindow()

static GLFWwindow * oe::Native::getGlfwWindow ( const oe::core::Window window)
inlinestatic

Get the GLFW window handle from a core::Window.

Mainly used to send this handle through GLFW native functions to interact with raw window context

Returns
GLFW Window handle

◆ getNuklearContext()

static nk_context * oe::Native::getNuklearContext ( const oe::gui::Manager gui)
inlinestatic

Get the Nuklear UI context from a gui::Manager.

Can be used for immediate mode or for debug purposes

Returns
Nuklear context handle

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