gg: use D3D and stb_truetype on Windows;

pull/5807/head
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 #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>

View File

@ -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