Untitled
unknown
plain_text
2 years ago
478 B
5
Indexable
#include <iostream>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
using namespace std;
int main(){
glfwInit()
glfwTerminate(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwTerminate(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwTerminate(GLFW_OPENGI_PROFILE, GLFW_OPENGI_CORE_PROFILE);
GLFWwindows* window = glfwCreateWindow(800, 800, "hasib", NULL, NULL);
if (window == NULL) {
cout << "window creation failed" << endl;
glfwTerminate();
return -1;
}
return 0;Editor is loading...
Leave a Comment