PDA

View Full Version : draw a line on a cube



Dastagir
09-26-2009, 11:48 PM
hi

I want to draw a line on a cube like this image .But i'm having only two vertex for line ...

http://cid-6a2ae6c2240ebc3b.skydrive.live.com/self.aspx/New%20album/line.bmp

help regarding this..

vivek vyas
09-27-2009, 03:13 AM
i) glScissor(not sure as i m beginner and jumping and jumping)
ii) Texture which have line made by hand(read texture mapping and some few tutorial lie on net for that)

Dastagir
09-27-2009, 04:39 AM
hi,

its a line vertex while drawing i want to cut as line in the cube ,showing the depth..