GlU Wireframe

  • Follow


Hi,
I want to draw a wireframe sphere. Does GLU support wireframe objects or 
only solid objects?
-S
0
Reply sj 5/6/2004 11:55:35 PM

sj <pqr@acs.com> writes:
> I want to draw a wireframe sphere. Does GLU support wireframe objects
> or only solid objects?

If you set the gluQuadricDrawStyle() of the quadric to GLU_LINE it
should be rendered as a set of lines.

If you're using glut, it provides a simple wireframe sphere using the
glutWireSphere call.

-- 
Stefanus Du Toit; http://3.141592.org/; gpg 4bf2e217; #include <iostream>
template<int i,int j=i-1>struct I{I(){if(i%j)I<i,j-1>();else I<i-1>();}};
template<int i>struct I<i,1>{I(){std::cout<<i<<'\n';I<i-1>();}};template<
>struct I<1,0>{I(){}};int main(){I<50>();}/* Use -ftemplate-depth-5000 */
0
Reply Stefanus 5/7/2004 12:08:01 AM


sj wrote:
> 
> I want to draw a wireframe sphere. Does GLU support wireframe objects or 
> only solid objects?
> 

Try glPolygonMode()...


-- 
<\___/>          "To err is human, to moo bovine."
/ O O \
\_____/  FTB.    For email, remove my socks.



0
Reply fungus 5/7/2004 12:13:33 AM

2 Replies
187 Views

(page loaded in 0.071 seconds)

Similiar Articles:




7/13/2012 3:34:16 AM


Reply: