Witam ,
Mam problem z Visual Studio 2017 robię dokładnie wszystko jak pokazuje p.Krzysztof Szenk w kursie wprowadzenie do programowania grafiki komputerowej.
Przy kompilacji nie wyskakuje mi okno które stworzyłem. Natomiast wyskakuje mi taki komunikat :The program '[12240] Project1.exe' has exited with code 1 (0x1).Nie wiem co z tym robić. Z góry dziękuje.
#include <GLFW/glfw3.h>
constexpr int WIN_SZ_X = 800, WIN_SZ_Y = 600;
int main()
{
glfwInit();
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 5);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
GLFWwindow* window = glfwCreateWindow(WIN_SZ_X, WIN_SZ_Y, "bLA", nullptr, nullptr);
if (!window)
return 1;
glfwMakeContextCurrent(window);
while (!glfwWindowShouldClose(window))
{
if (glfwGetKey(window, GLFW_KEY_Q) == GLFW_PRESS)
glfwSetWindowShouldClose(window, 1);
glfwSwapBuffers(window);
glfwPollEvents();
}
glfwTerminate();
return 0;
}