So I have this simple 3D renderer that works with a OneLoneCoders PixelGameEngine.
There needs to be one class for the scene, which inherits from the olc::PixelGameEngine class.
I have a couple of functions i have written. Theres is a function to draw a line, and clear the screen. Which both need to inherit from the olc::PixelGameEngine class
And i have some linear algebra functions like matrix multiplication, which do not need to inherit from anything.
How do i separate the code below, into different modules, one for math funcs, one for drawing functions, and one for the scene itself, without causing multiple definition errors and stuff ?