tomolt / libschrift

A lightweight TrueType font rendering library
ISC License
471 stars 32 forks source link

Tutorial for OpenGL? #13

Open aqilc opened 3 years ago

aqilc commented 3 years ago

I'm a beginner in OpenGL, I don't use XLib at all, and this looks like a really nice alternative for the very heavy FreeType. I don't want to spend days/weeks learning XLib to figure out how to port either, so if you could provide a tutorial/demo for graphical OpenGL C programs, it would be extremely appreciated!!

tomolt commented 3 years ago

This is something I wanted to do for a while, I just haven't gotten around to it yet. But for the meantime, I can at least give you these tips:

blazer2k1 commented 1 year ago

@tomolt Why not do a GLUT/FreeGLUT example so a demo can be crossplatform and not just X11?

jeannekamikaze commented 5 months ago

SDL would work fine if all you want is a cross-platform sample. I can type something up if you're interested.

aqilc commented 5 months ago

Actually, I have enough skill now to try to display something using raw OpenGL + GLFW + GLEW. If I get the time, I'll PR another example! Sorry I didn't reply before, but it's a very cool library that could definitely replace Freetype and stb_truetype as a lightweight, fast rendering library that fills in the gap left by the two. If hinting were supported, I'd definitely use it it more of my projects!