SGI Windows NT Toolbox
|Download Files|

Solar: OpenGL Win32 Console App

This is a simple OpenGL win32 console application program. It demonstrates how to use a local coordinate method to position parts of a model in relation to other model parts and how to use lighting.

The following are the steps to build and run this program:

  1. Start Microsoft visual Studio

  2. File
    -> __New

    "Projects" choose "Win32 Console Application"
    "Projects name" (put a name, eg: solar)
    then press OK

  3. Project
    -> __Add To Project
    -> __Files (add SOLAR.C and GLOS.H)

  4. Project
    -> __Settings...
    -> __Link (add "opengl32.lib glu32.lib glaux.lib"
                        to Object/library modules)
    then press OK

  5. Build
    -> __Rebuild All

  6. Build
    -> __!Execute solar.exe or Ctrl+F5 ( to run the progarm)

    Pressing the "a" key toggles the animation
    Pressing the up and down arrow keys will increase/decrease the animation rate.


Web Accessible Files of the src/gfx/opengl/exampleCode/solar directory:

This is an automatically derived categorization of files of this directory. Only files which can be displayed or heard in some manner are included. Files may be immediately accessed by clicking the corresponding link. The Zip Archive (if present) contains all files in this directory/subtree (including executables, subdirectories, etc.)

Source

Documentation

Images


Copyright © 1999, Silicon Graphics, Inc.