parent
48d9f1dd5a
commit
9e02b7f3b3
196 changed files with 116992 additions and 29969 deletions
17
samples/host/imgui_impl.cpp
Normal file
17
samples/host/imgui_impl.cpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// Single translation unit for sokol_imgui.h's implementation.
|
||||
//
|
||||
// Built as C++ so it can call into the C++ Dear ImGui API directly (the C
|
||||
// path needs cimgui, which we don't pull in). Compiled as part of the
|
||||
// renderer binary; not linked into tests, which never instantiate the GUI.
|
||||
//
|
||||
// The sokol_app/glue/time *_IMPL macros live in src/app/sokol_app_impl.c and
|
||||
// sokol_gfx's SOKOL_IMPL lives in src/gfx/sokol_impl.c - we only enable
|
||||
// SOKOL_IMGUI_IMPL here.
|
||||
|
||||
#include "imgui.h"
|
||||
|
||||
#include "sokol_gfx.h"
|
||||
#include "sokol_app.h"
|
||||
|
||||
#define SOKOL_IMGUI_IMPL
|
||||
#include "sokol_imgui.h"
|
||||
Loading…
Reference in a new issue