st/gui: Add STB image writing support

This commit is contained in:
Jakob Bornecrantz 2020-09-14 22:24:56 +01:00
parent 95e71ebba7
commit fac93948b3
3 changed files with 7 additions and 0 deletions

View file

@ -16,6 +16,7 @@ set(GUI_SOURCE_FILES
gui_scene_remote.c
gui_scene_video.c
gui_scene_tracking_overrides.c
gui_stb.c
../../../external/imgui/imgui/cimgui.cpp
../../../external/imgui/imgui/cimgui.h
../../../external/imgui/imgui/cimplot.cpp
@ -46,6 +47,7 @@ add_library(st_gui STATIC
target_link_libraries(st_gui PRIVATE
xrt-external-glad
xrt-external-stb
aux_util
aux_os
)

View file

@ -0,0 +1,3 @@
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"

View file

@ -13,6 +13,7 @@ gui_sources = [
'gui_scene_remote.c',
'gui_scene_video.c',
'gui_scene_tracking_overrides.c',
'gui_stb.c',
'../../../external/imgui/imgui/cimgui.cpp',
'../../../external/imgui/imgui/cimgui.h',
'../../../external/imgui/imgui/cimplot.cpp',
@ -49,6 +50,7 @@ lib_st_gui = static_library(
glad_include,
cjson_include,
imgui_include,
stb_include,
],
dependencies: gui_deps,
)