added glad

This commit is contained in:
Christoph J. Scherr 2023-10-12 23:38:49 +02:00
parent d63a793fd8
commit 949f7f02a0
3 changed files with 17 additions and 0 deletions

View file

@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.15)
project(glsl-basic CXX) project(glsl-basic CXX)
find_package(glfw3 3.3 REQUIRED) find_package(glfw3 3.3 REQUIRED)
find_package(glad 0.1.36 REQUIRED)
add_executable(glsl-basic src/main.cpp) add_executable(glsl-basic src/main.cpp)
target_link_libraries(glsl-basic glfw) target_link_libraries(glsl-basic glfw)
target_link_libraries(glsl-basic glad::glad)

14
README.md Normal file
View file

@ -0,0 +1,14 @@
# GLSL Basics
This repository is a collection of basic OpenGL shaders with GLFW.
## Requirements
Install GLFW (system package):
```bash
dnf install glfw-devel
```
Install glad,
```bash
dnf install glad
```

View file

@ -1,5 +1,6 @@
[requires] [requires]
glfw/3.3.8 glfw/3.3.8
glad/0.1.36
[generators] [generators]
CMakeDeps CMakeDeps