Blizzard / s2client-proto

StarCraft II Client - protocol definitions used to communicate with StarCraft II.
MIT License
3.76k stars 431 forks source link

Debug draw filled polygons #20

Open noorus opened 6 years ago

noorus commented 6 years ago

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 commented 6 years ago

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

noorus commented 6 years ago

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: