OpenGL® Examples



Win32 Tutorials

View Image Description View Source
minimal.jpg 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). minimal.c
animate.jpg
(RGB Mode)

animate.jpg
(Color Index Mode)
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. animate.c
mouse.jpg
(rotated)

mouse.jpg
(rotated + translated + zoomed)
An example of processing mouse events in an OpenGL program using the Win32 API. mouse.c
image.jpg An example of using draw pixels and pixel zoom operations in OpenGL using the Win32 API. image.c
simpledib.jpg Simple example of rendering to a Windows DIB (Device Independent Bitmap). simpledib.c
wglinfo.jpg Simple program that enumerates all of the pixel formats available. wglinfo.c