DarthMike / indielib-crossplatform

IndieLib is a cross-platform Game Graphics engine. Main focus is OpenGL ES 2.0 for mobile iOS operating system, and OpenGL desktop. **NOT SUPPORTED ANYMORE**
zlib License
61 stars 27 forks source link

Project should use Preprocessor macros to define which renderer to compile to. #3

Open M-F-K opened 12 years ago

M-F-K commented 12 years ago

Need to modify the settings so we don't modify sources every time we switch between directx and opengl (and other renderers) in the future.

DarthMike commented 11 years ago

Reopened, as it needs more thought on how to do this more elegantly.

Currently there is problem where client code using library will rely on definitions in IndiePlatforms, so the macros need to be defined properly.

Most possibly a CMake implementation would help here, as to change the header file depending on platform and configuration.

DarthMike commented 10 years ago

This needs careful consideration. Current solution is annoying but stable. Moving to 0.7 as it is not critical.