Sample OpenGL code

From SurfLab

Jump to: navigation, search

Contents

Sample OpenGL Code

hello.c

This is a simple, introductory OpenGL program.

prim.c

All the OpenGL primitives all in a row.

bezcurve.c

This program uses evaluators to draw a Bezier curve.

nurb.c

Simple nurb (non-uniform rational b-spline) program.

dobule.c

This is a simple double buffered program. Pressing the left mouse button rotates the rectangle. Pressing the middle mouse button stops the rotation.

wave.c

Neat wave program with some contouring options (press 'c').

For more information about OpenGL programming, see OpenGL.org.