SasLuca / rayfork

C99 Game Library. XNA-like. Platform Independent. Allocator Aware.
The Unlicense
330 stars 19 forks source link

Allow the developers to choose their dependencies #8

Closed SasLuca closed 4 years ago

SasLuca commented 4 years ago

Developers should have the option to not include a dependency and functions dependent on that dependency should just be #ifdef-ed out.

This should probably something like this:

#define RF_DONT_USE_X //Disables library X
#include "rayfork_renderer.h"

When a user defines RF_DONT_USE_X, library X should no longer be loaded and all functions that depend on it should be removed using #ifdef.

SasLuca commented 4 years ago

I decided against this for the moment as it doesn't seem as useful for now.