Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 792 Bytes

File metadata and controls

22 lines (18 loc) · 792 Bytes

sdl_test

Description

A small project whose purpose was to learn the following :

  • CMake build on linux
  • Error handling with std::unexpected
  • How moving works in cpp and r_value
  • The SDL framework

Additionaly I wanted to refresh my cpp and seeing how my understanding improved after programming in rust for a while.
Conclusion, definitely useful in understanding how moving data works (although the destructor being called in cpp feels strange). It also helps to understand why std::unique_ptr<Foo> is needed for polymorphism and how smart pointers work in general.

Build & Run

How to build :

cmake -B build
cmake --build build

This is untested on Windows or Mac but should work similarly in principle.

How to run :
./build/sdl_test