From 821b677ff94d9e7408ba21804880fc0ed868d419 Mon Sep 17 00:00:00 2001 From: 4VRDriver <44267643+4VRDriver@users.noreply.github.com> Date: Sun, 30 Aug 2020 21:24:39 +0200 Subject: [PATCH] Initial commit --- .gitignore | 3 +++ CMakeLists.txt | 15 +++++++++++++++ main.cpp | 14 ++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 .gitignore create mode 100644 CMakeLists.txt create mode 100644 main.cpp diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f205850 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +build +.directory + diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..4c3195a --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,15 @@ +cmake_minimum_required(VERSION 3.10) + +project(Fall-Fever) + +find_package(glfw3 3.3 REQUIRED) + +# Specify the C++ standard +set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD_REQUIRED True) + +add_executable(Fall-Fever main.cpp) + +target_link_libraries(Fall-Fever glfw) + +target_compile_options(Fall-Fever PRIVATE -Wall -Wextra -pedantic) diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..60d1150 --- /dev/null +++ b/main.cpp @@ -0,0 +1,14 @@ +#include +#include + +int main(int argc, char** argv) { + 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, 600, "GLFW-Window", NULL, NULL); + + while(1){} + + return 0; +}