alexheretic / glyph-brush

Fast GPU cached text rendering
Apache License 2.0
688 stars 52 forks source link

Added additional documentation to the OpenGL example. #141

Closed zedseven closed 3 years ago

zedseven commented 3 years ago

I've gotten the crate working now, but I burned a significant amount of time because I missed the use of VertexAttribDivisor in the example.

I also found the example a little hard to follow as someone who's not super familiar with OpenGL and text processing in general, so the verbosity of a lot of the raw stuff made it hard to understand at first.

This PR isn't anything crazy, but it adds notes here and there to hopefully make it a little easier to understand and specifically marks the VertexAttribDivisor call as important. (the rest of the VAO initialization is more or less what I'm used to, so I missed the one unique line)

Thank you for all your work on this series of crates!

alexheretic commented 3 years ago

Nice one, thanks!

Burning time getting opengl to behave is also my general experience of that API tbf 😆