memononen / fontstash

Light-weight online font texture atlas builder
zlib License
688 stars 88 forks source link

glFonsCreate help! #25

Closed DarkMaker64 closed 9 years ago

DarkMaker64 commented 9 years ago

Trying to include your library into my little game engine, but when i try to include glFontStash.h compiler (visual studio 2013) gives me hundreds of errors. if i don't include it i can't call glFonsCreate! i've included it so:

#include <stdio.h>                  // malloc, free, fopen, fclose, ftell, fseek, fread
#include <string.h>                 // memset
#define FONTSTASH_IMPLEMENTATION    // Expands implementation
#include "fontstash.h"
#define GLFONTSTASH_IMPLEMENTATION  // Expands implementation
#include "glfontstash.h"
DarkMaker64 commented 9 years ago

Solution found, i can't include both.