Having fun with shaders
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build
src
README.md
SConstruct

README.md

Raylib tests

In order to compile with g++ I had to modify raylib.h like so:

From:

264 // NOTE: MSC C++ compiler does not support compound literals (C99 feature)
265 // Plain structures in C++ (without constructors) can be initialized from { } initializers.
266 #ifdef __cplusplus
267     #define CLITERAL
268 #else
269     #define CLITERAL    (Color)
270 #endif

To:

To:
264 // NOTE: MSC C++ compiler does not support compound literals (C99 feature)
265 // Plain structures in C++ (without constructors) can be initialized from { } initializers.
266 #ifdef __cplusplus
267     #define CLITERAL    (Color)
268 #else
269     #define CLITERAL    (Color)
270 #endif

Compiling with -E flag allowed me to see how macros were expanded and CLITERAL lacked (Color) (which makes sense looking at the macro but it didn't compile without it in g++.

Comment says it's prepared for MSC C++ compiler so compiling with it might be problematic after this mod.