glxsimple is a tiny program for initializing and
displaying an Xlib GL graphics window.
Three Makefile's are provided, each
configured for three different systems: SGI, CES
(Sparc Ultra5), and Linux. Makefile.<system> to
Makefile.
The revolution in graphics programming is shading languages
providing programmability over Graphics Processing Units (GPUs).
Cg is one such high-level language.
Cg (GLUT) programming example:
runtime_ogl_vf_notexture is a demo of "Cg runtime"
programming. The program (demo.cpp) creates
a parameterized sphere and displays it in either wireframe,
flat, smooth, or Phong shading. The first three use
traditional OpenGL calls, the latter uses
Cg.
The Makefile provided is configured for
Mac OS X (tested on 10.3.3) and Linux.
runtime_ogl_vf is a demo of "Cg runtime"
programming. The program (demo.cpp) does
what the above example does, except it also adds in a
texture map.
The Makefile provided is configured for
Mac OS X (tested on 10.3.3) and Linux.
The GUI Toolkit, Framework Page
A web page containing a comparison of many toolkits. There are a lot of
them out there, below are three of the best for interactive graphics
programming.
GLUT
A simple, no-frills (no logo even! :) C GUI used to simplify learning
graphics programming. It makes window creation fairly easy, but it lacks a
lot of nice features such as buttons, file browsers, etc. If you're going to
learn interactive graphics, you might as well also learn to use a more powerful
GUI toolkit.
checks is a tiny program for initializing and
displaying a GLUT GL graphics window.
Three Makefile's are provided, each
configured for three different systems: SGI, CES
(Sparc Ultra5), and Linux. Makefile.<system> to
Makefile.
A powerful C GUI used to create The
Gimp. It's somewhat hard to learn (lacking good manuals), but once you
get comfortable with its syntax and methodology, you'll find it to be a very
good toolkit.
gtksimple and gtksimple2 are
short little programs for initializing and displaying
two painfully small GTK windows.
gtkglsimple is a small program which
opens up the same small window and a larger window
for OpenGL drawing.
Three Makefile's are provided, each
configured for three different systems: SGI, CES
(Sparc Ultra5), and Linux. Makefile.<system> to
Makefile.
gtkglarea widget.
Currently, the Makefile will only compile
on SGIs.
-LANG:... and
other compiler options!)
ppmview is a short little utility for viewing
PPM images. Try using it to view the
pnm/mandrill.ppm image
(shift-click to download).
Usage: ppmview [FILE]...
Three Makefile's are provided, each
configured for three different systems:
SGI, CES (Sparc Ultra5), and Linux. Depending
on where you want to compile the programs, rename
the appropriate Makefile.<system>
to Makefile.
libpnm library
installed and compiled in the subdirectory
pnm.
An object-oriented C++ GUI used to create KDE.
There's some
documentation here.
texture app is a short little program
that demonstrates an OpenGL widget and some sliders.
The Makefile provided should work equally
well on Mac OS X and Linux.
Pay attention to how the code is organized, noting
the need for a "top-level" Makefile.
The top-level Makefile contains code which
determines the system you're compiling on, sets up the
appropriate Qt specifications, and then generates
a Qt Makefile specific to the code being compiled
(in subdirectory src/). The Qt-generated
Makefile is in turn generated from
directions specified by the programmer (that's you)
in the src/texture.pro project file.
~/.cshrc:
setenv QTDIR /usr/lib/qt-3.3 setenv PATH $QTDIR/bin:$PATH setenv DYLD_LIBRARY_PATH $QTDIR/lib setenv MANPATH /usr/local/man:/usr/share/catman:/usr/share/man setenv MANPATH /usr/X11R6/man:/sw/man:$MANPATH setenv MANPATH $QTDIR/doc/man:$MANPATH
An easy C++ GUI based on the old Forms package. Includes a visual GUI
creator program (fluid) which lets you set up buttons, windows,
etc., and generate the skeleton callback C++ file.
Using OpenGL is
simplified by creating a special window subclass
Fl_Gl_Window.