An interactive interpreter for fixed-function OpenGL — the scene renders beside the source that made it. No rebuild while editing scenes.
# macOS: brew install cmake
# Ubuntu/Debian: sudo apt install freeglut3-dev
make gl-repl && ./gl-repl
./gl-repl --example "Torus knot" # F12 cycles all 43Also runs in the browser: with Emscripten's emcc on PATH, run make web.
Web setup →
If you want the images: the screenshots and GIFs under docs/images/ live in
Git LFS — docs only, nothing in the build needs them. Install it before
cloning, or they arrive as pointer text; git lfs install && git lfs pull fixes
a clone that already missed them.
Type this into the code panel:
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glEnable(GL_DEPTH_TEST);
glEnable(GL_LIGHTING);
glEnable(GL_LIGHT0);
glRotatef(t * 30, 0, 1, 0);
glutSolidTorus(0.3, 0.9, 24, 48);Now press Ctrl+T. The torus spins — the rate is just the scalar in front of
t, and every line stays editable.
the built-in Highlights tour
- Render as you type — edit a
glVertex3f, see it move. Ctrl+Tfor time — referencetanywhere, animation with no boilerplate.- A C-like language — loops, functions,
if; expressions wherever a number goes. - Runs in the browser — the same app as wasm via gl4es.
Ctrl+Rreplays your draws — the scene assembles call by call.- Export and import — standalone C89, compiles on its own, round-trips back in.
three of 43 built-in scenes, each a screenful of typed GL — browse the showcase →
User Guide · Showcase · Advanced Usage · Contributing · Modules · Architecture
Press F1 in-app for the full key reference.
C99 source · C89 export · OpenGL 1.1 · GLU · freeglut · MIT



