mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
st/gui: Add STB image writing support
This commit is contained in:
parent
95e71ebba7
commit
fac93948b3
|
@ -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
|
||||
)
|
||||
|
|
3
src/xrt/state_trackers/gui/gui_stb.c
Normal file
3
src/xrt/state_trackers/gui/gui_stb.c
Normal file
|
@ -0,0 +1,3 @@
|
|||
|
||||
#define STB_IMAGE_WRITE_IMPLEMENTATION
|
||||
#include "stb_image_write.h"
|
|
@ -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,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue