diff options
| author | raysan5 <raysan5@gmail.com> | 2014-10-17 21:11:58 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2014-10-17 21:11:58 +0200 |
| commit | 9d27bba23f08e7749fd98c8b56b5fe34786926fd (patch) | |
| tree | 86ca65c923fc56535d14b1e8c6bf933808518e4e /src/raylib.h | |
| parent | 063e26c521dba1af582906df1e5b96fa37c82a16 (diff) | |
| download | raylib-9d27bba23f08e7749fd98c8b56b5fe34786926fd.tar.gz raylib-9d27bba23f08e7749fd98c8b56b5fe34786926fd.zip | |
Small Fixes Update (1.2.1)
View CHANGELOG for description on small fixes and add-ons
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h index 4de67ba2..5257de58 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -64,6 +64,11 @@ //#define PLATFORM_ANDROID // Android device //#define PLATFORM_RPI // Raspberry Pi +// Security check in case no PLATFORM_* defined +#if !defined(PLATFORM_DESKTOP) && !defined(PLATFORM_ANDROID) && !defined(PLATFORM_RPI) + #define PLATFORM_DESKTOP +#endif + #if defined(PLATFORM_ANDROID) #include <android_native_app_glue.h> // Defines android_app struct #endif @@ -78,6 +83,13 @@ #define DEG2RAD (PI / 180.0f) #define RAD2DEG (180.0f / PI) +// raylib Config Flags +#define FLAG_FULLSCREEN_MODE 1 +#define FLAG_SHOW_LOGO 2 +#define FLAG_SHOW_MOUSE_CURSOR 4 +#define FLAG_CENTERED_MODE 8 +#define FLAG_MSAA_4X_HINT 16 + // Keyboard Function Keys #define KEY_SPACE 32 #define KEY_ESCAPE 256 @@ -300,6 +312,8 @@ int GetHexValue(Color color); // Returns hexadecim int GetRandomValue(int min, int max); // Returns a random value between min and max (both included) Color Fade(Color color, float alpha); // Color fade-in or fade-out, alpha goes from 0.0f to 1.0f +void SetupFlags(char flags); // Enable some window configurations + void ShowLogo(void); // Activates raylib logo at startup //------------------------------------------------------------------------------------ |
