Skip to content

Instantly share code, notes, and snippets.

@naphipps
naphipps / randutils_with_pcg.hpp
Last active February 13, 2021 19:08
Here's how I merged imneme's randutils with her pcg-random generators
/*
imneme's randutils.hpp gist:
https://gist.github.com/imneme/540829265469e673d045
imneme's pcg-cpp random generator I use:
https://github.com/imneme/pcg-cpp
Here's imneme's blog post describing why randutils.hpp is useful:
https://www.pcg-random.org/posts/developing-a-seed_seq-alternative.html
*/
@naphipps
naphipps / box2d_v3_alpha_task_api_with_npe.cpp
Last active June 25, 2024 19:17
Example of how to hook up to box2d V3-alpha task API
/*
I used this in sample.cpp/hpp of the box2d V3-alpha project.
This is just an example of a non-enkiTS job system used with box2d V3-alpha
- Nathan Phipps 1/14/24
*/
// --------- begin of inside sample.cpp ---------