diff --git a/src/Macros.h b/src/Macros.h new file mode 100644 index 000000000..a0fe00347 --- /dev/null +++ b/src/Macros.h @@ -0,0 +1,47 @@ +#ifdef ENVIRONMENT64 + +#define _CRT_SECURE_NO_WARNINGS +#define WIN32 +#define _WINDOWS +#define NDEBUG +#define BUILD_LIBTYPE_SHARED +#define CMAKE_INTDIR = "Release" +#define raylib_EXPORTS + +// RCORE + +#define PLATFORM_DESKTOP +#define GRAPHICS_API_OPENGL_33 + +// RAUDIO + +#define SUPPORT_FILEFORMAT_FLAC + +// LIBS + +#pragma comment(lib, "winmm.lib") + +#endif + +#ifdef ENVIRONMENT32 + +#define BUILD_LIBTYPE_SHARED +#define WIN32 +#define _WINDOWS +#define NDEBUG +#define _CRT_SECURE_NO_WARNINGS +#define CMAKE_INTDIR = "Release" +#define raylib_EXPORTS + +// RCORE + +#define PLATFORM_DESKTOP +#define GRAPHICS_API_OPENGL_21 + +// RAUDIO + +#define SUPPORT_FILEFORMAT_FLAC + +#pragma comment(lib, "winmm.lib") + +#endif \ No newline at end of file diff --git a/src/raudio.c b/src/raudio.c index dd8f4a255..087a856df 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -69,6 +69,8 @@ * **********************************************************************************************/ +#include "Macros.h" + #if defined(RAUDIO_STANDALONE) #include "raudio.h" #else diff --git a/src/raylib.h b/src/raylib.h index 0cffa4272..755bd05ff 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -82,6 +82,8 @@ * **********************************************************************************************/ +#include "Macros.h" + #ifndef RAYLIB_H #define RAYLIB_H @@ -1707,6 +1709,12 @@ RLAPI void DetachAudioStreamProcessor(AudioStream stream, AudioCallback processo RLAPI void AttachAudioMixedProcessor(AudioCallback processor); // Attach audio stream processor to the entire audio pipeline, receives frames x 2 samples as 'float' (stereo) RLAPI void DetachAudioMixedProcessor(AudioCallback processor); // Detach audio stream processor from the entire audio pipeline +// Cameras + +RLAPI void CameraYaw(Camera* cameraPointer, float yaw, bool local); +RLAPI void CameraPitch(Camera* cameraPointer, float pitch); +RLAPI void CameraRoll(Camera* cameraPointer, float roll); + #if defined(__cplusplus) } #endif