Archived

This topic is now archived and is closed to further replies.

Drawing lines interactively with the mouse cursor

This topic is 6073 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, how could I draw lines around objects in the scene using the mouse cursor - I know it is not entirely opengl - you need to use windows commands and I can do it using the gdi but I need it for opengl - any code / ideas? cheers thanx

Share this post


Link to post
Share on other sites
depends on how many lines u wanna draw if its less than say 10000 ild just keep track of them like LINE[1](ptA->ptB). if its more ill keep an array of the whole screen and just fill that in as you go

http://members.xoom.com/myBollux

Share this post


Link to post
Share on other sites