Trouble with simple VBO example
问题 I'm trying to get a super simple GLFW and VBO example running, but I'm stuck. I've used glBegin and glEnd for other projects, but I'm trying to update my code to work with OpenGL ES 2, but for now I just want to be as forward compatible as possible. From some examples online, I've come up with the following code: #include <stdlib.h> #include <GL/glfw3.h> #include <stdio.h> #define bool int #define true 1 #define false 0 const int width = 800; const int height = 600; bool opened = true; GLuint