View VAOs sharing VBOs
#include <iostream> | |
#include <math.h> | |
#if ( (defined(__MACH__)) && (defined(__APPLE__)) ) | |
#include <stdlib.h> | |
#include <OpenGL/gl.h> | |
#include <GLUT/glut.h> | |
#include <OpenGL/glext.h> | |
#else | |
#include <stdlib.h> | |
#include <GL/glew.h> |
View VAO with index
#include <iostream> | |
#include <math.h> | |
#if ( (defined(__MACH__)) && (defined(__APPLE__)) ) | |
#include <stdlib.h> | |
#include <OpenGL/gl.h> | |
#include <GLUT/glut.h> | |
#include <OpenGL/glext.h> | |
#else | |
#include <stdlib.h> | |
#include <GL/glew.h> |