Hubris Engine Dev
A Project to learn and get into Game Engine developement.
 
Loading...
Searching...
No Matches
GLWindow.cpp
Go to the documentation of this file.
1#include "pch.h"
2#include "GLWindow.h"
3#include <glad/glad.h>
4#include <glfw3.h>
5
6void Hubris::Graphics::GL::GLWindow::Init()
7{
8 glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
9 glfwInitHint(GLFW_VERSION_MAJOR, 4);
10 glfwInitHint(GLFW_VERSION_MINOR, 6);
11
12 if(glfwInit() == GLFW_FALSE){
13 std::cout << "Unable to init glfw" << std::endl;
14 }
15}