Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resizable window LWJGL #910

Open
TheoW03 opened this issue Aug 10, 2023 · 1 comment
Open

resizable window LWJGL #910

TheoW03 opened this issue Aug 10, 2023 · 1 comment

Comments

@TheoW03
Copy link

TheoW03 commented Aug 10, 2023

Question

how do I make the window resizable?

(as in I can change the size of the window and the render updates scale of the render, to match the size)

@Snowiiii
Copy link

Snowiiii commented Sep 9, 2023

LWJGL 3 offers a GLFW Wrapper for window management. For resizable windows, enable the GLFW hint using:

glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE);

To set up a resize callback, use:

glfwSetWindowSizeCallback(window, window_size_callback);

You can find more details on window management in GLFW here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants