Skip to content

Instantly share code, notes, and snippets.

View poyaoc97's full-sized avatar

Po-Yao (Kevin) Chang poyaoc97

View GitHub Profile
@poyaoc97
poyaoc97 / HW2.cpp
Last active November 5, 2019 01:18
#include <GL/glut.h>
#include <algorithm>
#include <array>
#include <cmath>
#include <cstddef>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <GL/glut.h>
#include <array>
#include <vector>
#include <cmath>
using namespace std;
using Coord = array<int, 2>;
constexpr int POINTSIZE { 1 }; // the number of pixels a point maps to
constexpr int WIDTH { 800 };
constexpr int HEIGHT { 600 };