1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

sokol: allow thirdparty window control (#14896)

This commit is contained in:
Larpon 2022-06-30 12:47:59 +02:00 committed by GitHub
parent ec75860453
commit 7c3571b274
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,11 @@ $if gcboehm ? {
} }
#include "sokol_v.pre.h" #include "sokol_v.pre.h"
#include "sokol_app.h" // To allow for thirdparty initializing window / acceleration contexts
// but still be able to use sokol.gfx e.g. SDL+sokol_gfx
$if !no_sokol_app ? {
#include "sokol_app.h"
}
#define SOKOL_IMPL #define SOKOL_IMPL
#define SOKOL_NO_DEPRECATED #define SOKOL_NO_DEPRECATED
#include "sokol_gfx.h" #include "sokol_gfx.h"