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

Debug draw filled polygons #20

Open
noorus opened this issue Aug 13, 2017 · 2 comments
Open

Debug draw filled polygons #20

noorus opened this issue Aug 13, 2017 · 2 comments

Comments

@noorus
Copy link

noorus commented Aug 13, 2017

Hey guys,
do you suppose the debug API could at some point feature functionality for drawing filled polygons? It'd be immensely helpful in debugging map regions ingame, for example.

At this point I suppose the Color structure would need to include an alpha value as well, since it'd be essential to be able to see through the polygon.

@davechurchill
Copy link

If you didn't want to support alpha in colors, you could add a 'filled' parameter

@noorus
Copy link
Author

noorus commented Aug 13, 2017

Agreed, you could just hardcode the polygon to draw at like 50% opacity solid instead of wireframe if a bool flag were set with the command.

Also, if direct (convex) polygon support is too much to expect, then maybe just a command to draw filled triangles. I can manage the tesselation myself, or maybe the API library could eventually do it, without requiring heavy lifting in the game itself.

Just a solid triangle draw command to get started, please? :octocat:

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

No branches or pull requests

2 participants