klips/cpp/graphics
Shaun Reed a97dfbe34b Clean up CMakeLists in all C++ examples
+ Rename output executables to match directory structure
+ Remove libraries for small examples
+ Supress -Wreturn-type warnings for singleton that is intentionally not copyable
2022-03-31 16:01:08 -04:00
..
opengl Rearrange graphics projects into subdirectory 2021-05-30 02:18:09 -04:00
opengl-cmake Clean up CMakeLists in all C++ examples 2022-03-31 16:01:08 -04:00
sdl Rearrange graphics projects into subdirectory 2021-05-30 02:18:09 -04:00
sdl-cmake Clean up CMakeLists in all C++ examples 2022-03-31 16:01:08 -04:00
CMakeLists.txt Clean up CMakeLists in all C++ examples 2022-03-31 16:01:08 -04:00
README.md Update README instructions 2022-01-07 11:32:52 -05:00

README.md

Graphics

Example graphics programming projects written in C++. For a more complete example of a graphics application, see shaunrd0/qtk

klips/cpp/graphics
.
├── opengl      # Barebones opengl application written in C++ built with gcc
├── opengl-cmake# Barebones opengl application written in C++ built with cmake
├── sdl-cmake   # Barebones sdl application written in C++ built with cmake
└── sdl         # Barebones sdl application written in C++ built with gcc

Install dependencies for these examples with the following command

sudo apt install libsdl2-dev freeglut3-dev 

Then we can build the examples that have CMakeLists.txt configured. If the example does not use CMake, the commands to build and run are found within the header comments of the main source file.

cd /path/to/klips/cpp/graphics/
mkdir build && cd build
cmake .. && cmake --build .
ls bin/

opengl-test  sdl-test