Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GameDevWeek
Dependencies
Cpp
mirrage
Commits
bae09edd
Commit
bae09edd
authored
Sep 26, 2018
by
Lukas
Browse files
fancy changes
parent
3558aac8
Pipeline
#2314
passed with stage
in 5 minutes and 35 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/mirrage/gui/include/mirrage/gui/gui.hpp
View file @
bae09edd
...
...
@@ -26,6 +26,10 @@
#include <memory>
extern
nk_size
nk_do_progress
(
nk_flags
*
state
,
struct
nk_command_buffer
*
out
,
struct
nk_rect
bounds
,
nk_size
value
,
nk_size
max
,
int
modifiable
,
const
struct
nk_style_progress
*
style
,
struct
nk_input
*
in
);
struct
nk_context
;
...
...
@@ -102,6 +106,8 @@ namespace mirrage::gui {
auto
ctx
()
->
nk_context
*
;
auto
viewport
()
->
glm
::
vec4
{
return
_viewport
;}
void
viewport
(
glm
::
vec4
new_viewport
);
auto
centered
(
int
width
,
int
height
)
->
struct
nk_rect
;
...
...
src/mirrage/gui/src/gui.cpp
View file @
bae09edd
#define NK_IMPLEMENTATION
#define NK_LIB
#include <mirrage/gui/gui.hpp>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment