Tuesday, 25 November 2014

FontStash and OpenGL 3.0 support

I'll write up a proper post soon about my experience last weekend moving from OpenGL 1.0 (and Glut) through a conversion to using GLEW + GLFW to OpenGL 3.0+ support.

For now, anyone who is using FontStash, the default glfontstash implementation no longer works in OpenGL 3 because OGL3 requires the use of vertex array buffers and GLSL shaders. The fixed render pipeline has been removed.

I've put an enhanced glfontstash library here:
https://github.com/BastiaanOlij/fontstash/blob/master/src/glfontstash.h

Just add a:
#define GLFONTSTASH_OPGL3
before including the fontstash library


No comments:

Post a Comment