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 <vector>
5#include <map>
6
7#include "font_atlas.h"
8
9namespace oe::render
10{
11 class Texture;
12}
13
14struct nk_context;
15struct nk_style;
16
17namespace oe::gui
18{
19 class Manager;
20 class Theme
21 {
22 public:
26 explicit Theme(nk_context* context);
27
28 nk_style* getStyle() { return _style; }
29 FontAtlas* getFontAtlas() { return _font_atlas; }
30
34 void apply();
35
40
41 protected:
42 nk_context* _context;
43 nk_style* _style;
44 FontAtlas* _font_atlas;
45 };
46}
47#endif
Handle and bake font atlas for using in the GUI.
Definition font_atlas.h:28
Definition theme.h:21
Theme(nk_context *context)
Graphical user interface (panels, buttons, text input, ...)
Definition component.h:13
Render related abstractions (Shader, Framebuffer, Cubemaps, Textures)
Definition opengl.h:10