changed template to be project specific ig

This commit is contained in:
CJSatnarine
2025-02-15 00:29:59 -05:00
parent 30879d8ef8
commit 6ea22726b0
3 changed files with 6 additions and 9 deletions

View File

@@ -1,11 +1,11 @@
cmake_minimum_required(VERSION 3.5.0) 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) cmake_policy(SET CMP0072 NEW)
find_package(OpenGL REQUIRED) find_package(OpenGL REQUIRED)
add_executable( add_executable(
opengl_project learn_shaders
src/main.cpp src/main.cpp
src/glad/glad.c src/glad/glad.c
src/glad/glad.h src/glad/glad.h
@@ -28,4 +28,4 @@ add_executable(
src/classes/Texture.cpp src/classes/Texture.cpp
) )
target_link_libraries(opengl_project glfw OpenGL::GL) target_link_libraries(learn_shaders glfw OpenGL::GL)

View File

@@ -1,5 +1,2 @@
# OpenGL-Template # Learn-Shaders
This is a template I will use for OpenGL projects. This is just a playground where I learn about shaders and that kinda stuff I guess.
It contains classes that made my experience easier in OpenGL.
This template just provides you with a black window.

View File

@@ -23,7 +23,7 @@ int main(void) {
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
// Create window. // 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) { if (window == NULL) {
LogInfo("Failed to create GLFW window."); LogInfo("Failed to create GLFW window.");
glfwTerminate(); glfwTerminate();