How rodrigcasio/opengl-rcasio-projects works
This repository is a sequence of standalone OpenGL learning projects, progressing from window creation to triangles, shader programs, textures, and 2D transformations. The user-facing workflow is to launch a chapter’s application, interact with its rendered scene, and observe the graphics concepts introduced there. Sampled entrypoints show GLFW window/input handling, GLAD initialization, buffer setup, shader use, and texture loading. Later unsampled chapters are represented only where their directory names support the capability; the README describes the local build-and-launch workflow, not additional runtime features.
Main entry points: src/main.cpp Texture Chapter · src/main.cpp Texture Exercises · src/main.cpp Transform Chapter · src/main.cpp Transform Exercises
Components 14
Window Basics
- Window Example
01-creating-a-window/src/main.cpp
Geometry and Shaders
- Hello Triangle
02-hello-triangle/src/main.cpp - Triangle Exercises
02-ex2/src/main.cpp - Shader Chapter
03-shaders/src/main.cpp - Shader Helper
03-shaders/src/shader.cpp
Textures
- Texture Chapter
04-textures/src/main.cpp - Texture Exercises
04-ex2/src/main.cpp - Image Decoder
04-textures/src/stb_image.cpp
Transformations
- Transform Chapter
05-transformations/src/main.cpp - Transform Exercises
05-ex2/src/main.cpp
Other components
- Learner
- GLFW
- GLAD Loader
02-hello-triangle/src/glad.c - OpenGL
Connections 33
- Learner → Window Example: launches
- Learner → Hello Triangle: launches
- Learner → Triangle Exercises: launches
- Learner → Shader Chapter: launches
- Learner → Texture Chapter: launches
- Learner → Texture Exercises: launches
- Learner → Transform Chapter: launches
- Learner → Transform Exercises: launches
- Window Example → GLFW: creates window
- Hello Triangle → GLFW: creates window
- Hello Triangle → GLAD Loader: initializes
- Hello Triangle → OpenGL: compiles and draws
- Triangle Exercises → GLFW: creates window
- Triangle Exercises → OpenGL: configures and draws
- Shader Chapter → GLFW: creates window
- Shader Chapter → OpenGL: configures and draws
- Shader Chapter → Shader Helper: constructs shader
- Texture Chapter → GLFW: creates window
- Texture Chapter → OpenGL: uploads and draws
- Texture Chapter → Shader Helper: constructs shader
- Texture Chapter → Image Decoder: loads image
- Texture Exercises → GLFW: creates window
- Texture Exercises → OpenGL: uploads and draws
- Texture Exercises → Shader Helper: constructs shader
- Texture Exercises → Image Decoder: loads image
- Transform Chapter → GLFW: creates window
- Transform Chapter → OpenGL: transforms and draws
- Transform Chapter → Shader Helper: constructs shader
- Transform Chapter → Image Decoder: loads image
- Transform Exercises → GLFW: creates window
- Transform Exercises → OpenGL: transforms and draws
- Transform Exercises → Shader Helper: constructs shader
- Transform Exercises → Image Decoder: loads image