vallentin / glText

Cross-platform single header text rendering library for OpenGL
zlib License
167 stars 16 forks source link

gltBeginDraw() declared but undefined #12

Open Djuckman opened 3 years ago

Djuckman commented 3 years ago

I've pasted code from "example" from readme. Is it possible to fix?

vallentin commented 3 years ago

I assume you downloaded gltext.h placed it next to your c/cpp file, e.g. src/main.c and then src/gltext.h. Then in the top of your e.g. main.c you add:

#define GLT_IMPLEMENTATION
#include "gltext.h"

If yes, then can you share more information on the issues and errors you get?