transparent-cube

Minimal cross-platform native/wasm graphics example.
Log | Files | Refs | README | LICENSE

commit fb094e76e5d39305da42daa9117582c57fc5003e
parent b66ac0a29ae069effdee1bd2e2e948ba01528d0b
Author: Amin Mesbah <dev@aminmesbah.com>
Date:   Sun,  5 Aug 2018 14:41:55 -0700

Make glfw window resizable

This makes it tiled, and not floating, by default in i3wm.

Diffstat:
Msrc/platform_linux.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/platform_linux.c b/src/platform_linux.c @@ -42,7 +42,7 @@ int main(void) glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); - glfwWindowHint(GLFW_RESIZABLE, GL_FALSE); + glfwWindowHint(GLFW_RESIZABLE, GL_TRUE); GLFWwindow* window = glfwCreateWindow(PLATFORM_SCR_WIDTH, PLATFORM_SCR_HEIGHT, "Quaternion Demo", NULL, NULL); if (!window)