// // myGL.h // SkyRoads // // Created by Joshua Moerman on 12/22/12. // Copyright (c) 2012 Vadovas. All rights reserved. // #ifndef SkyRoads_myGL_h #define SkyRoads_myGL_h #import #include namespace gl { typedef std::array Vertex; typedef std::array Quad; //degenerate Vertex translate(Vertex v, GLfloat x, GLfloat y, GLfloat z){ v[0] += x; v[1] += y; v[2] += z; return v; } Vertex scale(Vertex v, GLfloat x, GLfloat y, GLfloat z){ v[0] *= x; v[1] *= y; v[2] *= z; return v; } } #endif