Did some tweaks to the CMakeLists

This commit is contained in:
2021-10-16 22:57:19 -07:00
parent bb32ca5459
commit 66c61a6633
19 changed files with 178 additions and 243 deletions

View File

@@ -72,6 +72,9 @@ int32_t main() {
inputBind(input, INPUT_MOUSE_X, GLFW_PLATFORM_INPUT_MOUSE_X);
inputBind(input, INPUT_MOUSE_Y, GLFW_PLATFORM_INPUT_MOUSE_Y);
// Set up the client
game->engine.client.setTitle = &glfwClientSetTitle;
// Set up some GLFW stuff
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL);
glfwSetWindowTitle(window, game->engine.name);
@@ -139,4 +142,8 @@ inputsource_t glfwGetInputSourceForKey(int32_t key) {
key <= GLFW_KEY_MENU ? key - GLFW_KEY_ESCAPE + GLFW_KEY_GRAVE_ACCENT :
key
) % INPUT_SOURCE_COUNT);
}
void glfwClientSetTitle(char *name) {
glfwSetWindowTitle(window, name);
}