aboutsummaryrefslogtreecommitdiff
path: root/source/main.cpp
diff options
context:
space:
mode:
authorhnOsmium0001 <[email protected]>2022-05-08 00:50:52 -0700
committerhnOsmium0001 <[email protected]>2022-05-08 00:50:52 -0700
commit37baa006649c6ddac40207e3fdc1599407179a76 (patch)
tree0890e1a5a322d5d1c24a162545acd7d2d13baf9d /source/main.cpp
parentc2cba4424ea902f062e6af4733670f2be0494889 (diff)
Redefine world coordinate to have units in meters
Diffstat (limited to 'source/main.cpp')
-rw-r--r--source/main.cpp4
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);