Joy of painting with Ruby and OpenGL
summary
Uses Ruby with the opengl-bindings gem and GLFW to open a resizable window, register callbacks, and render GPU-driven geometry. Code builds low-level primitives (points, lines, triangles), a box class from 8 vertices, and an animated umbrella approximated by triangles; animation toggles angle between min/max and shows 8, 16, 116 segments to demonstrate smoothing via triangulation. Demo runs (escape closes window); Ruby adds CPU/memory overhead versus C but rendering runs on the GPU.
AI-written summary · about
chapters (19)
- 0:00Intro
- 4:00Drawing Linear Geometry
- 7:18Rotating
- 8:57Applying colors
- 12:06Drawing sun umbrella
- 13:33Drawing box
- 16:01Adding rotation
- 16:47Triangles
- 19:45Control
- 20:42Angle
- 24:48Production examples
- 27:13Opengl to Ruby
- 28:18Opengl vs Ruby
- 29:40Game engines in Ruby
- 31:10Can you use OpenGL to make something difficult
- 33:13OpenGL Vulkan API
- 34:01Interactive drawings
- 34:38Dragon Ruby
- 35:33Outro
related talks
33mRuby + OpenGL = infinite abilities
38mGraphics and Simulations (and Games), Oh My!
34mReimagining 2D graphics and game development with Ruby
51mWriting Games with Ruby
45mAttention Rubyists: you can write video games
33mWriting Games with Ruby
43mMy Ruby is a Paintbrush. My Ruby is a Synth.
51mWriting Games with Ruby
