This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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, |
NewerOlder