glText icon indicating copy to clipboard operation
glText copied to clipboard

gltBeginDraw() declared but undefined

Open Djuckman opened this issue 3 years ago • 1 comments

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

  • if to add "#define GLT_IMPLEMENTATION" appear lots of mistakes

Djuckman avatar Apr 11 '21 13:04 Djuckman

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?

vallentin avatar Apr 11 '21 19:04 vallentin