PDA

View Full Version : Primatives drawing for purposes of debugging



Uhfgood
06-19-2008, 09:24 PM
Specifically a line function, just for debugging, so I can tell where something is "pointing" (specifically hypno-joe's eyes, i need to draw a line from his eyes to the edge of the camera view -- to tell me where his eyes are aiming)

Keith

Seth
06-19-2008, 11:25 PM
Yeah, I agree, that would be useful. Another gentleman has requested it as well.

Here would be how you call it:



GetDrawManager:DrawLine(Vector2 a, Vector2 b, Color, layerID, C_DRAW_SCREEN_COORDS);


Too much writing? The idea is C_DRAW_SCREEN_COORDS would use screen coordinates, and C_DRAW_WORLD_COORDS would use the active map's coordinates.

layerID can be C_LAYER_TOP which will just be defined to 1000 or something, a layer higher than anything else.

The GetDrawManager object would house all of the primitive drawing, which would include DrawRect, DrawPoint, DrawCircle, etc.

Anybody have any improvements/ideas/comments before I actually add it?

Uhfgood
06-21-2008, 08:38 PM
This works for me, thanks. Hmm possibly the ability to still see the line whether you're zoomed out or not.

Seth
07-01-2008, 06:10 AM
Feature added :)