transparent-cube

Minimal cross-platform native/wasm graphics example.
git clone git://git.amin.space/transparent-cube.git
Log | Files | Refs | README | LICENSE

commit 6034e6cb3f980b8aa3c5f56fe436f79a0f09d0b0
parent 69f17f27d06f363420c9325e9202ba220e3b8dea
Author: amin <dev@aminmesbah.com>
Date:   Sun,  5 Aug 2018 21:42:30 +0000

Make glfw window resizable

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

FossilOrigin-Name: 3f462a3ea4a5c399d127cd81e6ff22b6c9193e37aafde92a81993e70a41d2099
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)