Skip to content Skip to navigation

Connexions

You are here: Home » Content » Drawing simple shapes with perspective

Navigation

Content Actions

  • Download module PDF
  • Add to ...
    Add the module to:
    • My Favorites
    • A lens
    • An external social bookmarking service
    • My Favorites (What is 'My Favorites'?)
      'My Favorites' is a special kind of lens which you can use to bookmark modules and collections directly in Connexions. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need a Connexions account to use 'My Favorites'.
    • A lens (What is a lens?)

      Definition of a lens

      Lenses

      A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

      What is in a lens?

      Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

      Who can create a lens?

      Any individual Connexions member, a community, or a respected organization.

    • External bookmarks
  • E-mail the author

Recently Viewed

This feature requires Javascript to be enabled.

Drawing simple shapes with perspective

Module by: Bryson Payne

Summary: The first program in this OpenGL tutorial allows the user to view a blue 3D sphere on the screen.

:shapes1.jpg Discussion The first example in this set of tutorials is a program to draw a simple wireframe sphere. We will take this first step and go further in the tutorials that follow, but this serves as a simple test bed for us to try displaying any object or figure. Simply change the line that draws the glutWireSphere with the line(s) for your object to easily test your coding for errors.

Sample code: Click here to see the sample code: simple.c

Executable example: Click here for a running demo: simple.exe

Comments, questions, feedback, criticisms?

Send feedback