1
0
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:
Alexander Medvednikov 2020-07-08 21:43:27 +02:00
parent 2790890bc2
commit b8d762df97
2 changed files with 6 additions and 1 deletions

View File

@ -161,6 +161,10 @@ FONS_DEF void fonsDrawDebug(FONScontext* s, float x, float y);
#define FONS_USE_FREETYPE
#endif
#ifdef _WIN32
#undef FONS_USE_FREETYPE
#endif
#ifdef FONS_USE_FREETYPE
#include <ft2build.h>

View File

@ -18,9 +18,10 @@ pub const (
// OPENGL
#flag linux -DSOKOL_GLCORE33
#flag windows -DSOKOL_GLCORE33
//#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
// to ensure import order with V yet