danini-the-panini / mittsu

3D Graphics Library for Ruby.
https://github.com/danini-the-panini/mittsu
MIT License
508 stars 33 forks source link

How do I print text? #92

Open kburman opened 4 years ago

kburman commented 4 years ago

I have checked all the examples but couldn't find anything related to it. Is there any helper method to do this?

danini-the-panini commented 4 years ago

Currently there is no helper for printing text. If you're looking to draw 2D text, you can use sprites to render a bitmap font. If you want 3D text, you will have to generate your own geometry from a font.

kburman commented 4 years ago

Thanks for the reply. Is there any plan for any helper methods in the future?

danini-the-panini commented 4 years ago

I don't have any plans at the moment, but I'd be more than happy to look at a PR that adds this sort of functionality.

kburman commented 4 years ago

I have just started with OpenGL. Not sure If I would be able to write production-level code for it but for sure if I came with something stable and usable will raise a PR for the same.