Togl 1.5 for OS/2

Togl 1.5

Togl is a Tk widget for OpenGL rendering.

I have ported part of Togl to OS/2 using the PGL API in order to develop my CS 488 assignments at home. I have only ported the RGB parts of Togl, and not the colour index modes, and not other features of Togl.

In Togl, versions for Windows and X exist simultaneously in the source file. In my port I added an EMX version, so all three versions exists simultaneously in the source file. I have not tested this version under Windows, so it is possible I accidently broke that part of it. I have done marginal testing of the X code in Togl.

How to get Togl 1.5 for OS/2

Source for Togl 1.5 for OS/2 is available to download in zip file format.

Example code that uses Togl is available from the CS 488/688 website.

How do I use Togl 1.5 for OS/2

System Requirements

Tcl/Tk

First you will need Tcl/Tk for OS/2. My port for Togl has only been tested on the 8.0.5 beta version of Tcl/Tk, and probably will not work with the 7.6/4.2 release.

As part of the source code, I need tkOS2Int.h from the source files for Tcl/Tk. If you use a newer version of Tcl/Tk, this file may need to be replaced.

Warning: Togl 1.5 for OS/2 uses internal code from Tcl/Tk 8.0.5 (tkOS2Int.h), and therefore it is subject to change. So be careful out there.

OpenGL

OpenGL for OS/2 Warp is available by FTP from IBM. I suggest downloading oglgold.zip.

Compiler

Togl is used to develop programs. So you will of course need a compiler. Togl compiles under emx and gcc.

Interface

The C interface and Tcl/Tk interface for Togl are described at the Togl homepage.

Bugs

Many features of Togl probably do not work. But my assignments for my CS 488 run fine, and that is all I wanted. If you want to port more features of Togl, go right ahead.

Legal Stuff

Parts of this software are copyrighted by Russell O’Connor.

This software is copyrighted by Brian Paul (brianp@elastic.avid.com) and Benjamin Bederson (bederson@cs.umd.edu). The following terms apply to all files associated with the software unless explicitly disclaimed in individual files.

The authors hereby grant permission to use, copy, modify, distribute, and license this software and its documentation for any purpose, provided that existing copyright notices are retained in all copies and that this notice is included verbatim in any distributions. No written agreement, license, or royalty fee is required for any of the authorized uses. Modifications to this software may be copyrighted by their authors and need not follow the licensing terms described here, provided that the new terms are clearly indicated on the first page of each file where they apply.

IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.


Russell O’Connor: contact me