Gl_line

  • Follow


Hi,

I have gotten into reading up on graphics as abit of a hobby! Would any
anyone know if there is code available out there so i can see how to
draw a simple line in a window using the mouse. I have been reading
different tutorials, but they all stop short of this.

cheers for any replys

ronan

0
Reply ronancarty (5) 1/26/2006 8:51:17 PM

ronancarty@gmail.com schrieb:
> Hi,
> 
> I have gotten into reading up on graphics as abit of a hobby! Would any
> anyone know if there is code available out there so i can see how to
> draw a simple line in a window using the mouse. I have been reading
> different tutorials, but they all stop short of this.
> 
> cheers for any replys
> 
> ronan
> 
have you understood the OpenGL pipeline already? you will have to 
project your mouse coords into the 3d space. a line can then be drawn 
with the two derrived vertices.
0
Reply David 1/26/2006 9:24:47 PM


David Zellhoefer wrote:

> ronancarty@gmail.com schrieb:
> > Hi,
> >
> > I have gotten into reading up on graphics as abit of a hobby! Would any
> > anyone know if there is code available out there so i can see how to
> > draw a simple line in a window using the mouse. I have been reading
> > different tutorials, but they all stop short of this.
> >
> > cheers for any replys
> >
> > ronan
> >
> have you understood the OpenGL pipeline already? you will have to
> project your mouse coords into the 3d space. a line can then be drawn
> with the two derrived vertices.

hi,

hi, i am only currently reading up on 2D Glut programming. i have read
plenty about glutMouseFunc and things like that but i am still looking
to see if there are any good quality sites for coding examples glut &
2D programming. Rather than these API specification sites which i dont
really find too helpful. 

ronan

0
Reply ronancarty 1/27/2006 12:06:52 AM

> draw a simple line in a window using the mouse

Hi Ronan,
Try this...
http://user.it.uu.se/~grafik/progArchive/ScribbleOpenGL.c

Jonno
0
Reply Jonno 1/27/2006 9:32:42 AM

3 Replies
247 Views

(page loaded in 0.068 seconds)

Similiar Articles:













7/26/2012 11:14:37 AM


Reply: