A sky roads like game with interesting shaders
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

35 lines
569 B

//
// 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 <GLKit/GLKit.h>
#include <array>
namespace gl {
typedef std::array<GLfloat, 7> Vertex;
typedef std::array<Vertex, 8> 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