Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

ShadyWRX

3D Geometric Primitives?

This topic is 5800 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, i began my open gl programming using GLUT, since the course i am taking used it. I started looking at the NeHe tutorials, and i completed #1, and #6... basically i needed #1 to set up the window, and the rest was the same as using GLUT, then i learned Texture Mapping in #6. I have one problem. In GLUT there was built in functions for drawing certain objects, like a solidsphere, or a teapot, how do i do these things in VC++ OpenGL? I know about the 2D Primitives like GL_QUADS and so on, are there any 3D geometric primitives? Thanks Mike [edited by - ShadyWRX on December 5, 2002 6:19:21 PM] [edited by - ShadyWRX on December 5, 2002 6:37:43 PM]

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by ShadyWRX
are there any 3D geometric primitives?




Not built into OpenGL.
The only primitives built into OpenGL itself are
GL_LINES
GL_LINE_STRIP
GL_LINE_LOOP
GL_TRIANGLES
GL_TRIANGLE_STRIP
GL_TRIANGLE_FAN
GL_QUADS
GL_QUAD_STRIP
GL_POLYGON

I think that''s it.

However, you can create your own functions for making geometric primitives. For some shapes, such as spheres and disks, you can use Quadrics. There is a NeHe tutorial that covers them.

Share this post


Link to post
Share on other sites
great, i knew about the openGL primitives such as the ones listed by terminate, thanks anyways, but what i really needed was those glu ones, thanks heaps!

Mike

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!