Setup GLEW

This commit is contained in:
GuilhermeWerner
2021-01-08 18:26:49 -03:00
parent 27076c6600
commit cacb232a42
7 changed files with 29625 additions and 16 deletions

View File

@ -1,5 +1,8 @@
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
int main()
{
GLFWwindow *window;
@ -19,6 +22,13 @@ int main()
/* Make the window's context current */
glfwMakeContextCurrent(window);
if (glewInit() != GLEW_OK)
{
std::cout << "Error!" << std::endl;
}
std::cout << glGetString(GL_VERSION) << std::endl;
/* Loop until the user closes the window */
while (!glfwWindowShouldClose(window))
{