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> |
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 BitwiseAND.cpp
// Question from hackerrank | |
// Solution by Isla, Joe, and Lyn | |
#include <cmath> | |
#include <cstdio> | |
#include <vector> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; |