Skip to content

Debug draw#3

Open
Boscop wants to merge 12 commits intorjanicek:masterfrom
Boscop:debug-draw
Open

Debug draw#3
Boscop wants to merge 12 commits intorjanicek:masterfrom
Boscop:debug-draw

Conversation

@Boscop
Copy link
Copy Markdown

@Boscop Boscop commented Nov 10, 2016

I implemented the debug draw feature, added doc comments for how to use it and an example.
Users have to impl the Draw trait and create a new DebugDraw instance with it.
Then they register it with world.set_debug_draw():

	let mut debug_draw = DebugDraw::new(MyDebugDraw::new());
	debug_draw.set_flags(!0); // set all flags, draw everything
	world.set_debug_draw(&mut debug_draw);
	world.draw_debug_data();

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

Successfully merging this pull request may close these issues.

1 participant