Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL 3 implementation of glfontstash.h #23

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

BastiaanOlij
Copy link

Made these changes awhile ago but in case a broader audience is interested.

Especially for us poor Mac users a full VAO/VBO/Shader implemenation is needed to render once you switch over to OpenGL 3. As a result I enhanced glfontstash.h by adding a basic shader, create the needed buffers and make it work. Eventually I decided to add this as a new include file called gl3fontstash.h

It is basically a drop in replacement for the old one with only one function added called gl3fonsProjection that allows you to set an orthographical projection matrix to render the text in the correct position.

andrewvy added a commit to andrewvy/blocks that referenced this pull request May 14, 2016
Uses BastiaanOlij fork of FontStash for OpenGL 3.0 rendering.
memononen/fontstash#23

Adds a simple frametime counter in the topleft.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant