Skip to content

Instantly share code, notes, and snippets.

View native-m's full-sized avatar

Fiann Thur (Native-M) native-m

View GitHub Profile
@native-m
native-m / Property.h
Created July 7, 2021 13:42
Simple Property Getter & Setter in C++
#include <functional>
template<typename T>
class Property
{
public:
using GetterFn = T&();
using SetterFn = void(const T&);
template<typename Getter, typename Setter>
@native-m
native-m / maze.cpp
Created November 26, 2021 18:19
SDL Maze Generator
#include <iostream>
#include <stack>
#include <array>
#include <algorithm>
#include <random>
#include <memory>
#include <SDL.h>
#undef main