Skip to content

Collection of simple OpenGL examples with abstraction layer over OpenGL and SDL2

Notifications You must be signed in to change notification settings

DanielKriz/opengl-study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGL study Repository

This repository contains a few programs and a library that I am using to study OpenGL. Due to the purpose of learning I am implementing my own abstraction layer over OpenGL and SDL2 to make them more "modern" in C++ sense.

Library can be found in the /lib directory and examples can be found in /src directory.

Build instructions and Usage

I am using conan package manager for managing of my dependencies, thus the first step is to download them:

conan install conanfile.py --build=missing -s build_type=Debug

As the whole project is still under heavy development we will prefer Debug build, as we want the additional information in our binaries.

Then we can use the generated CMake preset to create needed build files:

export conan_toolchain=build/Debug/generators/conan_toolchain.cmake
cmake -Bbuild -DCMAKE_TOOLCHAIN_FILE=$conan_toolchain -DCMAKE_BUILD_TYPE=Debug -GNinja .

After that we can safely build the project:

cmake --build build

Compiled examples can be then found in build/examples.

For example resulting application mesh_with_indices looks like this:

Mesh with indices example

Acknowledgement

As my linear algebra library is still under development (it can be found here) I am facilitating a library developed by the authors of OpenGL SuperBible.

About

Collection of simple OpenGL examples with abstraction layer over OpenGL and SDL2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published