Skip to content

Instantly share code, notes, and snippets.

View Darthfett's full-sized avatar

Casey Kuball Darthfett

View GitHub Profile
GLfloat LightPos[] = { 10.0f, 0.0f, 0.0f, 1.0f};
void setupProjectionMatrix() {
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glViewport(0,0,WindowWidth,WindowHeight);
gluPerspective(FieldOfView, AspectRatio, NearPlane, FarPlane);
glMatrixMode(GL_MODELVIEW);
}
@Darthfett
Darthfett / gist:1342503
Created November 6, 2011 05:05
Lever Metadata
// Methods of Dealing with Metadata (such as whether a lever is turned on or off (powered or unpowered)
// 1:
mf.Metadata.Levers = {
"SideEastOff": 1,
"SideWestOff": 2,
"SideSouthOff": 3,
"SideNorthOff": 4,
"TopNorthOff": 5,