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

Add icon to window #33

Open
PushingCoder572 opened this issue May 18, 2022 · 1 comment
Open

Add icon to window #33

PushingCoder572 opened this issue May 18, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@PushingCoder572
Copy link
Collaborator

It makes it look 100x cooler.

@PushingCoder572 PushingCoder572 added the enhancement New feature or request label May 18, 2022
@PushingCoder572
Copy link
Collaborator Author

PushingCoder572 commented May 18, 2022

GLFWimage icons[1];
icons[0].pixels = SOIL_load_image("icon.png", &icons[0].width, &icons[0].height, 0, SOIL_LOAD_RGBA);
glfwSetWindowIcon(window.window, 1, icons);
SOIL_free_image_data(icons[0].pixels);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant