Added icons and fixed audio manger crash

This commit is contained in:
Antoine Pilote
2023-04-04 01:39:23 -04:00
parent 6b018aeb32
commit 0ba492a872
8 changed files with 82 additions and 5 deletions
+6
View File
@@ -115,12 +115,18 @@ namespace Nuake {
{ // Create window
m_Window = glfwCreateWindow(m_Width, m_Height, m_Title.c_str(), NULL, NULL);
if (!m_Window)
{
Logger::Log("Window creation failed.", CRITICAL);
return -1;
}
GLFWimage images[1];
images[0].pixels = stbi_load("resources/Images/nuake-logo.png", &images[0].width, &images[0].height, 0, 4); //rgba channels
glfwSetWindowIcon(m_Window, 1, images);
stbi_image_free(images[0].pixels);
glfwMakeContextCurrent(m_Window);
Logger::Log((char*)glGetString(GL_VERSION));