|
|
Gl_line
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: Gl_line - comp.graphics.api.openglHi, 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... glLineWidth and connecting lines - comp.graphics.api.opengl ...Hi! I'm experimenting with glLineWidth and noticed, that if the line is thick enough and line loop has sharp angle, connections between segments are... glpolygonoffset problem - comp.graphics.api.openglImmediately following this I try and draw a black depth offset border so I use: glColor3f(0.0f,0.0f,0.f); glPolygonMode(GL_FRONT, GL_LINE); glBegin(GL_POLYGON ... Drawing a circle. - comp.graphics.api.openglI know I can do this step by step by increasing an angle and using glBegin() with GL_LINE_STRIP or GL_LINE_LOOP, and calling glVertex3f(x,y,z) but this needs to be done ... OpenGL's default triangulation of a GL_POLYGON object - comp ...guha@ait.ac.th wrote: > > What I see is the same polygon if polygon mode is GL_LINE, but if it's > the default GL_FILL then the rendering depends on the listing. Drawing two overlapping lines in different colors - comp.graphics ...I currently can lasso select points and polygons in my OpenGL >> widget, whoopee! >> >> What I do is change the color that the GL_LINE_LOOP is drawn to create the >> "is ... FSAA Multisample - comp.graphics.api.openglMultisampling - OpenGL.org Full Scene Anti-Aliasing - also called FSAA The 1995 method of doing AA was to call glEnable(GL_POINT_SMOOTH), glEnable(GL_LINE_SMOOTH ... The wonders of the glPolygonMode function - comp.graphics.api ...Gl_line - comp.graphics.api.opengl The wonders of the glPolygonMode function - comp.graphics.api ... Gl_line - comp.graphics.api.opengl The wonders of the glPolygonMode ... Visual C++ OpenGL tesselator - comp.graphics.api.openglGl_line - comp.graphics.api.opengl Visual C++ OpenGL tesselator - comp.graphics.api.opengl... glColor4(0.1,0.1,0.1,0.8); gluTessVertex(tess, vertices[j], vertices[j ... intersection of line and polygon - comp.soft-sys.matlab... two or more primitives ... intersection of line and polygon - comp.soft-sys.matlab... api.opengl... so I use: glColor3f(0.0f,0.0f,0.f); glPolygonMode(GL_FRONT, GL_LINE ... glBegin - OpenGL - The Industry Standard for High Performance GraphicsGL_LINE_LOOP. Draws a connected group of line segments from the first vertex to the last, then back to the first. glBegin - PyOpenGL -- The Python OpenGL BindingGL_LINE_LOOP Draws a connected group of line segments from the first vertex to the last, then back to the first. Vertices n and n + 1 define line n. 7/26/2012 11:14:37 AM
|
|
|
|
|
|
|
|
|