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
Is it possible to draw triangles or polygons? #8
Comments
Until now I have had no plan to include polygons. I could, though. What is your use case? |
Thanks for your fast reply! I've been experimenting with a visual effect that uses triangles, and I've really enjoyed using this library so I thought I would start here. It's not too important though, and I'm sure I could find some workarounds on my own. |
I managed to add my own FillTriangle and DrawTriangle functions to a copy of this library, so my issue is solved. It still would be cool to have a polygon function, but I'm not sure if that would be in line with this project's vision. |
I think that actually a DrawPolygon and FillPolygon function would be nice to have. It would increase the API size by two functions which is OK for the benefit it brings in my opinion. I am currently spending my free time on the wui library (it gets a graphical GUI designer) but when I get around to it I will look into implementing this. The main problem will be that the SDL2 backend does not support drawing triangles if I remember correctly. For the DirectX and OpenGL backends it will be no problem. Can you share your version of the code? |
I couldn't get SDL2 working on my system, but I'm pretty sure it should be able to draw triangles. Here's my code for GLFW:
|
Hi very good and easy for use engine,how use different colour exclude this predefined colors? |
There are functions |
thanks |
Looking at the source code, there doesn't seem to be any way to draw triangles or polygons.
Is there any way to access lower-level functions to achieve this, or is this being planned for a future update?
Thanks!
The text was updated successfully, but these errors were encountered: