opengl_x11

Playing with OpenGL
git clone git://bsandro.tech/opengl_x11
Log | Files | Refs | README | LICENSE

commit b4fa258cf6d247b3ec3fdee16250ee1b4cb65d4d
parent fbbc45680630f114646d5238823287df17ccf319
Author: bsandro <email@bsandro.tech>
Date:   Fri, 21 Nov 2025 00:20:06 +0200

pile of rotating cubes

Diffstat:
Mcube.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cube.c b/cube.c @@ -312,7 +312,7 @@ int main(int argc, char *argv[]) { mat4 model; glm_mat4_identity(model); glm_translate(model, cubePositions[i]); - GLfloat angle = 20.f * i; + GLfloat angle = 20.f * i + (current_ts()-t_started)*50; glm_rotate(model, glm_rad(angle), (vec3){ 1.f, 0.3f, 0.5f }); GLuint loc_model = glGetUniformLocation(shaderPrg, "model"); glUniformMatrix4fv(loc_model, 1, GL_FALSE, model[0]);