win32_tutorial/





An example of the minimal Win32 & OpenGL program. It only works in 16 bit color modes or higher (since it doesn't create a palette).

Source code: minimal.c.

Executable: minimal.exe.

Snapshots: triangle (shown).


An example of an OpenGL animation loop using the Win32 API. Also demonstrates palette management for both RGB and Color Index modes and general strategies for message handling.

Source code: animate.c.

Executable: animate.exe.

Snapshots: rgb mode (shown), color index mode.


An example of processing mouse events in an OpenGL program using the Win32 API.

Source code: mouse.c.

Executable: mouse.exe.

Snapshots: rotated (shown), rotated + translated + zoomed.


An example of using draw pixels and pixel zoom operations in OpenGL using the Win32 API.
Source code: image.c.

Executable: image.exe.

Snapshots: opengl (shown).


Simple example of rendering to a Windows DIB (Device Independent Bitmap).
Source code: simpledib.c.

Executable: simpledib.exe.

Snapshots: torus (shown).


Copyright © 1997 Silicon Graphics Incorporated