Refactored some tooling.
This commit is contained in:
@ -51,8 +51,7 @@ int32_t main() {
|
||||
// Init the render resolution
|
||||
renderSetResolution(&game->engine.render,
|
||||
WINDOW_WIDTH_DEFAULT, WINDOW_HEIGHT_DEFAULT
|
||||
);
|
||||
|
||||
);
|
||||
// Init the game
|
||||
if(gameInit(game)) {
|
||||
// Bind initial keys
|
||||
@ -72,8 +71,12 @@ int32_t main() {
|
||||
// Bind the fake inputs
|
||||
inputBind(input, INPUT_MOUSE_X, GLFW_PLATFORM_INPUT_MOUSE_X);
|
||||
inputBind(input, INPUT_MOUSE_Y, GLFW_PLATFORM_INPUT_MOUSE_Y);
|
||||
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL);
|
||||
|
||||
// Set up some GLFW stuff
|
||||
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL);
|
||||
glfwSetWindowTitle(window, game->engine.name);
|
||||
|
||||
// Begin time.
|
||||
time = 0;
|
||||
|
||||
// Main Render Loop
|
||||
|
Reference in New Issue
Block a user