Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
theme.h
1#ifndef OE_GUI_THEME_H
2#define OE_GUI_THEME_H
3
4#include "font_atlas.h"
5
6namespace oe::render
7{
8 class Texture;
9}
10
11struct nk_context;
12struct nk_style;
13
14namespace oe::gui
15{
16 class Manager;
17 class Theme
18 {
19 public:
23 explicit Theme(nk_context* context);
24
25 nk_style* getStyle() { return _style; }
26 FontAtlas* getFontAtlas() { return _font_atlas; }
27
31 void apply();
32
37
38 protected:
39 nk_context* _context;
40 nk_style* _style;
41 FontAtlas* _font_atlas;
42 };
43}
44#endif
Handle and bake font atlas for using in the GUI.
Definition font_atlas.h:28
Definition theme.h:18
Theme(nk_context *context)
Graphical user interface (panels, buttons, text input, ...)
Definition component.h:11
Render related abstractions (Shader, Framebuffer, Cubemaps, Textures)
Definition opengl.h:10