File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,9 @@ target_compile_definitions(sokol PRIVATE
122
122
USE_DBG_UI
123
123
)
124
124
125
+ set_property (TARGET sokol PROPERTY CXX_STANDARD 14 )
126
+
127
+
125
128
if (APPLE )
126
129
set_source_files_properties (src/sokol.cpp PROPERTIES COMPILE_FLAGS "-x objective-c++ -fobjc-arc" )
127
130
endif ()
Original file line number Diff line number Diff line change @@ -172,10 +172,10 @@ void init(void) {
172
172
173
173
// initial clear color
174
174
pass_action.colors [0 ].action = SG_ACTION_CLEAR;
175
- pass_action.colors [0 ].val [ 0 ] = 0 .0f ;
176
- pass_action.colors [0 ].val [ 1 ] = 0 .5f ;
177
- pass_action.colors [0 ].val [ 2 ] = 0 .7f ;
178
- pass_action.colors [0 ].val [ 3 ] = 1 .0f ;
175
+ pass_action.colors [0 ].value . r = 0 .0f ;
176
+ pass_action.colors [0 ].value . g = 0 .5f ;
177
+ pass_action.colors [0 ].value . b = 0 .7f ;
178
+ pass_action.colors [0 ].value . a = 1 .0f ;
179
179
180
180
ImGuiIO & io = ImGui::GetIO ();
181
181
@@ -211,8 +211,8 @@ void init(void) {
211
211
img_desc.wrap_v = SG_WRAP_CLAMP_TO_EDGE;
212
212
img_desc.min_filter = SG_FILTER_LINEAR;
213
213
img_desc.mag_filter = SG_FILTER_LINEAR;
214
- img_desc.content .subimage [0 ][0 ].ptr = font_pixels;
215
- img_desc.content .subimage [0 ][0 ].size = font_width * font_height * 4 ;
214
+ img_desc.data .subimage [0 ][0 ].ptr = font_pixels;
215
+ img_desc.data .subimage [0 ][0 ].size = font_width * font_height * 4 ;
216
216
io.Fonts ->TexID = (ImTextureID)(uintptr_t ) sg_make_image (&img_desc).id ;
217
217
218
218
ImGuiStyle& style = ImGui::GetStyle ();
Original file line number Diff line number Diff line change 14
14
#define SOKOL_TRACE_HOOKS
15
15
#define SOKOL_WIN32_FORCE_MAIN
16
16
17
- #include " sokol_app.h"
18
17
#include " sokol_gfx.h"
18
+ #include " sokol_app.h"
19
19
#include " sokol_glue.h"
20
20
#include " sokol_time.h"
21
21
#include " sokol_gl.h"
You can’t perform that action at this time.
0 commit comments