mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
gg: use D3D and stb_truetype on Windows;
This commit is contained in:
parent
2790890bc2
commit
b8d762df97
4
thirdparty/fontstash/fontstash.h
vendored
4
thirdparty/fontstash/fontstash.h
vendored
@ -161,6 +161,10 @@ FONS_DEF void fonsDrawDebug(FONScontext* s, float x, float y);
|
|||||||
#define FONS_USE_FREETYPE
|
#define FONS_USE_FREETYPE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#undef FONS_USE_FREETYPE
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef FONS_USE_FREETYPE
|
#ifdef FONS_USE_FREETYPE
|
||||||
|
|
||||||
#include <ft2build.h>
|
#include <ft2build.h>
|
||||||
|
@ -18,9 +18,10 @@ pub const (
|
|||||||
|
|
||||||
// OPENGL
|
// OPENGL
|
||||||
#flag linux -DSOKOL_GLCORE33
|
#flag linux -DSOKOL_GLCORE33
|
||||||
#flag windows -DSOKOL_GLCORE33
|
|
||||||
//#flag darwin -framework OpenGL -framework Cocoa -framework QuartzCore
|
//#flag darwin -framework OpenGL -framework Cocoa -framework QuartzCore
|
||||||
|
|
||||||
|
// D3D
|
||||||
|
#flag windows -DSOKOL_D3D11
|
||||||
|
|
||||||
// for simplicity, all header includes are here because import order matters and we dont have any way
|
// for simplicity, all header includes are here because import order matters and we dont have any way
|
||||||
// to ensure import order with V yet
|
// to ensure import order with V yet
|
||||||
|
Loading…
Reference in New Issue
Block a user