Skip to content
drewwoodsPublic

About

OpenGL immediate-mode REPL — interactive GL command interpreter with live code panel

Topics

Resources

Contributing

Stars

7 stars

Watchers

0 watching

Forks

Latest commit

 

History

4,033 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gl-repl — immediate mode, immediately

macOS Linux

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 43

Also 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.

Highlights guided tour

the built-in Highlights tour

  • Render as you type — edit a glVertex3f, see it move.
  • Ctrl+T for time — reference t anywhere, 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+R replays your draws — the scene assembles call by call.
  • Export and import — standalone C89, compiles on its own, round-trips back in.

Animated ring example   Transform guides   Orrery with tracking labels

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

About

OpenGL immediate-mode REPL — interactive GL command interpreter with live code panel

Topics

Resources

Contributing

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages