Slight changes to matrix.d including comments.
Add Timer struct which contains now, previous, and delta variables.
Move updateTimer/updateFPS into their respective structs as update() functions.
Move struct Timer into util.d because FPS is also there. I should probably move them into a time.d file.
Change updateCursor into Cursor.update().
input.d refactor.
- Move handleKeyboardInput and handleMouseClick into Input struct.
- Replace InputState with fields in Input struct.
- Replace iState, istate, and ist instances of InputState with input instances of Input.
Make cursor a member of Input.
Refactor.
- Moved game.init()/game.loop() from main.d to game.d. Now main only contains new Game(). The constructor does the init.
- Use glfw{Get,Set}WindowUserPointer to access members of Game. This means that I don't need a global state anymore. Woo.
- Moved GameState members into Game and removed GameState, as the members of Game are the state...
- Changed a few function prototypes to include extra parameters now that there is no global state.
- Moved Game members int and height into Window.