OpenGL Viewer
Description

OpenGL implemention and viewer for Visual Smalltalk.  The goodie includes all source needed to interface with the OpenGL API and example surface classes.

Files

This distribution includes the following files:
 
3dobject.cls
constant.st
dll.cls
extras.st
pane.cls
pen.cls
startup.st
vector.cls
viewer.cls
Source file-ins for OpenGL viewer.
filein.st File-in installation script.
readme.txt
CATALOG-CARD.txt
Installation notes
castle.bmp
color.bmp
rivets.bmp
st.bmp
Bitmap files for the OpenGL surfaces

Requirements

VS/VSE 3.1.2 for Win32s on Windows NT or Windows 95 with OpenGL dlls installed.  A color display setting exceeding 256 colors should be used.

Installation

Unzip the archive to a subdirectory of your VS/VSE installation or to a new directory.   Copy all the bitmap files (*.bmp) included with this package into your VS/VSE installation directory. From the Visual Smalltalk menu bar select File-Install and select filein.st.  This will file in all required classes for the OpenGL viewer.

Examples

To open the viewer execute the following:

    OpenGL3DViewer new open

The OpenGL3DViewer has sample views that may be opened from the menu bar by selecting OpenGL and then one of the three example items.  Each of these example views are defined by a class in the installation.  Inspect the classes Face, Maze, and Cube to see how the example surfaces are defined. The following key combinations will shift the view in the OpenGL Window:

        Up arrow key: move forward
        Down arrow key: move backward
        Left arrow key: move left
        Right arrow key: move right
        Page Up key: move up
        Page Down: move down

        Ctrl + Up arrow key: look up
        Ctrl + Down arrow key: look down
        Ctrl + Left arrow key: look left
        Ctrl + Right arrow key: look right
        Ctrl + Page Up key: rotate clockwise
        Ctrl + Page Down: rotate counterclockwise

Additional info

Originally posted on the UIUC Smalltalk archive May 2, 1995.

Contact

John Pugh
john@objectpeople.on.ca

Links to:
The ObjectShare web site
VisualSmalltalk Product Support
ObjectShare's Online Documentation Site