How to draw a cube with OpenGl
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <GL/glew.h> #include <GLFW/glfw3.h> GLuint program; GLuint vao; int frame = 0; #define M_PI 3.14159 void matrixmultiply(GLfloat *out, GLfloat *multiplicant) { GLfloat temp[16]; for(int x = 0; x < 16; x++){ temp[x] = out[x]; } for(int x = 0; x < 4; x++) { for(int y = […]