Carl Bateman
2006-11-18 16:52:40 UTC
I'm learning and playing around with OpenGL vertex arrays.
Working with some sample code from the codesampler.com site
(ogl_indexed_geometry, if it's relevant), I'm trying to show a wireframe
cube.
I've added the line to the render function and it works fine on my desktop,
glPolygonMode( GL_FRONT_AND_BACK, GL_LINE );
but when I do the same on my laptop (Fujitsu-Siemens Amilo L7300) nothing is
displayed. Removing the line renders a solid cube on both machines.
Oddly glutWireCube works fine, but sadly isn't any real use to me since I
want to extend this for other 3d models.
Anyone have any ideas why this might be so?
TIA
Carl Bateman
Working with some sample code from the codesampler.com site
(ogl_indexed_geometry, if it's relevant), I'm trying to show a wireframe
cube.
I've added the line to the render function and it works fine on my desktop,
glPolygonMode( GL_FRONT_AND_BACK, GL_LINE );
but when I do the same on my laptop (Fujitsu-Siemens Amilo L7300) nothing is
displayed. Removing the line renders a solid cube on both machines.
Oddly glutWireCube works fine, but sadly isn't any real use to me since I
want to extend this for other 3d models.
Anyone have any ideas why this might be so?
TIA
Carl Bateman