feat: render per-vertex color triangle

- Add shader class for vertex/fragment program compilation
- Add vao class for vertex array object management
- Render RGB gradient triangle with interpolated vertex colors
This commit is contained in:
2026-05-05 22:05:40 +02:00
parent 90d013695d
commit df08210f77
6 changed files with 279 additions and 5 deletions
+2
View File
@@ -19,6 +19,8 @@ add_executable(cuber "cuber.cpp"
"cbt/opengl/buffer.cpp"
"cbt/opengl/texture.cpp"
"cbt/opengl/descriptor.cpp"
"cbt/opengl/shader.cpp"
"cbt/opengl/vao.cpp"
)
target_include_directories(cuber PRIVATE ".")
target_compile_features(cuber PRIVATE cxx_std_23)