diff options
author | hnOsmium0001 <[email protected]> | 2022-05-08 00:50:52 -0700 |
---|---|---|
committer | hnOsmium0001 <[email protected]> | 2022-05-08 00:50:52 -0700 |
commit | 37baa006649c6ddac40207e3fdc1599407179a76 (patch) | |
tree | 0890e1a5a322d5d1c24a162545acd7d2d13baf9d /source/main.cpp | |
parent | c2cba4424ea902f062e6af4733670f2be0494889 (diff) |
Redefine world coordinate to have units in meters
Diffstat (limited to 'source/main.cpp')
-rw-r--r-- | source/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/main.cpp b/source/main.cpp index 592350f..c0668d0 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -36,7 +36,7 @@ void GlfwErrorCallback(int error, const char* description) { } void GlfwFramebufferResizeCallback(GLFWwindow* window, int width, int height) { - AppConfig::mainWidnowWidth = width; + AppConfig::mainWindowWidth = width; AppConfig::mainWindowHeight = height; AppConfig::mainWindowAspectRatio = (float)width / height; } @@ -401,7 +401,7 @@ void main() { } } - int fbWidth = AppConfig::mainWidnowWidth; + int fbWidth = AppConfig::mainWindowWidth; int fbHeight = AppConfig::mainWindowHeight; glfwGetFramebufferSize(window, &fbWidth, &fbHeight); glViewport(0, 0, fbWidth, fbHeight); |