README file from "rasterops" directory
~opengl2/examples/raster README Copyright 1993, 1995, 1996, Silicon Graphics, Inc. Technical Education Development All Rights Reserved. A collection of programs implementing raster positioning and pixel operations within the OpenGL. blendrgb.c Demonstrates how to use the GL_EXT_blend_color extensions to blend two images that do not have an alpha channel. Up Arrow - increase blend factor Down Arrow - decrease blend factor Escape key - exit the program collage.c: display one or more image files as a collage. Display one or more image files as a collage using glRasterPos2f() and glDrawPixels() usage: collage <file.rgb> [<file2.rgb>] ... Up to MAX_IMAGES can be read. collage will randomly display images zoomed randomly in random positions. Escape key - exit the program SPACEBAR - toggle fixed/random zoom copyImage.c Demonstrates the glCopyPixels() routine. copyImage copies the pixels under the cursor when LEFTMOUSE is pressed. Escape key - exit the program Left Mousebutton, down - copy pixels Middle Mousebutton, down - expand viewing area Right Mousebutton, down - shrink viewing area copyZoom.c: demonstates the glCopyPixels() and glPixelZoom() routines. Escape key - exit the program Left Mousebutton, down - copy pixels Middle Mousebutton, down - zoom down Right Mousebutton, down - zoom up show.c: displays an sgi rgb format image file in a window. show creates a window displaying any RGB image stored in the SGI .rgb format. The filename is opened and the image data is read. The image is then displayed in a window. Escape key - exit the program pan.c: creates a window displaying a subimage of any RGB image stored in the SGI .rgb format. It opens the file specified on the command line and creates a window displaying a subimage taken from the middle of the image. The image can be panned by dragging the mouse with the Left Mousebutton pressed. Left Mousebutton, down - pan subimage Escape key - exit the program windowSnap.c: write pixel data from the window to an image file. When LEFTMOUSE is pressed and released the window is captured, the pixel data is written into a file, and the program exits. Left Mousebutton, up - get snapshot of window and exit
Source
Documentation
Images
Reference