From 6ea22726b0832fb0a9c4e7ab23f8c11752916d04 Mon Sep 17 00:00:00 2001 From: CJSatnarine Date: Sat, 15 Feb 2025 00:29:59 -0500 Subject: [PATCH] changed template to be project specific ig --- CMakeLists.txt | 6 +++--- README.md | 7 ++----- src/main.cpp | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b3acc95..3c2580a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,11 +1,11 @@ cmake_minimum_required(VERSION 3.5.0) -project(opengl_project VERSION 0.1.0 LANGUAGES C CXX) +project(learn_shaders VERSION 0.1.0 LANGUAGES C CXX) cmake_policy(SET CMP0072 NEW) find_package(OpenGL REQUIRED) add_executable( - opengl_project + learn_shaders src/main.cpp src/glad/glad.c src/glad/glad.h @@ -28,4 +28,4 @@ add_executable( src/classes/Texture.cpp ) -target_link_libraries(opengl_project glfw OpenGL::GL) +target_link_libraries(learn_shaders glfw OpenGL::GL) diff --git a/README.md b/README.md index 0fe0775..752fa0f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,2 @@ -# OpenGL-Template -This is a template I will use for OpenGL projects. - -It contains classes that made my experience easier in OpenGL. -This template just provides you with a black window. +# Learn-Shaders +This is just a playground where I learn about shaders and that kinda stuff I guess. diff --git a/src/main.cpp b/src/main.cpp index 5a5e70c..3729aee 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -23,7 +23,7 @@ int main(void) { glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); // Create window. - GLFWwindow *window = glfwCreateWindow(WINDOW_WIDTH, WINDOW_HEIGHT, "OpenGL_Project", NULL, NULL); + GLFWwindow *window = glfwCreateWindow(WINDOW_WIDTH, WINDOW_HEIGHT, "Learn Shaders", NULL, NULL); if (window == NULL) { LogInfo("Failed to create GLFW window."); glfwTerminate();