Untitled
unknown
plain_text
2 years ago
581 B
7
Indexable
#include<iostream>
#include<glad/glad.h>
#include<GLFW/glfw3.h>
using namespace std;
int main()
{
glfwInit();
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
GLFWwindow* window = glfwCreateWindow(800, 800, "Sinthya", NULL, NULL);
if (window == NULL) {
cout << "window creation failed" << endl;
glfwTerminate();
return -1;
}
glfwMakeContextCurrent(window);
glfwDestroyWindow(window);
glfwTerminate();
return 0;
}
Editor is loading...
Leave a Comment