Added some comments
This commit is contained in:
parent
d1133ca8d3
commit
60232810d8
2 changed files with 7 additions and 7 deletions
|
@ -177,7 +177,7 @@ static bool CheckCollisionPointRec(Vector2 point, Rectangle rec); // Check if p
|
||||||
static const char *FormatText(const char *text, ...); // Formatting of text with variables to 'embed'
|
static const char *FormatText(const char *text, ...); // Formatting of text with variables to 'embed'
|
||||||
|
|
||||||
// NOTE: raygui depend on some raylib input and drawing functions
|
// NOTE: raygui depend on some raylib input and drawing functions
|
||||||
// TODO: Set your own functions
|
// TODO: Replace by your own functions
|
||||||
static Vector2 GetMousePosition() { return (Vector2){ 0.0f, 0.0f }; }
|
static Vector2 GetMousePosition() { return (Vector2){ 0.0f, 0.0f }; }
|
||||||
static int IsMouseButtonDown(int button) { return 0; }
|
static int IsMouseButtonDown(int button) { return 0; }
|
||||||
static int IsMouseButtonPressed(int button) { return 0; }
|
static int IsMouseButtonPressed(int button) { return 0; }
|
||||||
|
@ -191,7 +191,6 @@ static int MeasureText(const char *text, int fontSize) { return 0; }
|
||||||
static void DrawText(const char *text, int posX, int posY, int fontSize, Color color) { }
|
static void DrawText(const char *text, int posX, int posY, int fontSize, Color color) { }
|
||||||
static void DrawRectangleRec(Rectangle rec, Color color) { }
|
static void DrawRectangleRec(Rectangle rec, Color color) { }
|
||||||
static void DrawRectangle(int posX, int posY, int width, int height, Color color) { DrawRectangleRec((Rectangle){ posX, posY, width, height }, color); }
|
static void DrawRectangle(int posX, int posY, int width, int height, Color color) { DrawRectangleRec((Rectangle){ posX, posY, width, height }, color); }
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
|
11
src/raylib.h
11
src/raylib.h
|
@ -64,6 +64,7 @@
|
||||||
//#define PLATFORM_ANDROID // Android device
|
//#define PLATFORM_ANDROID // Android device
|
||||||
//#define PLATFORM_RPI // Raspberry Pi
|
//#define PLATFORM_RPI // Raspberry Pi
|
||||||
//#define PLATFORM_WEB // HTML5 (emscripten, asm.js)
|
//#define PLATFORM_WEB // HTML5 (emscripten, asm.js)
|
||||||
|
//#define PLATFORM_OCULUS // Oculus Rift CV1
|
||||||
|
|
||||||
// Security check in case no PLATFORM_* defined
|
// Security check in case no PLATFORM_* defined
|
||||||
#if !defined(PLATFORM_DESKTOP) && !defined(PLATFORM_ANDROID) && !defined(PLATFORM_RPI) && !defined(PLATFORM_WEB)
|
#if !defined(PLATFORM_DESKTOP) && !defined(PLATFORM_ANDROID) && !defined(PLATFORM_RPI) && !defined(PLATFORM_WEB)
|
||||||
|
@ -71,7 +72,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PLATFORM_ANDROID)
|
#if defined(PLATFORM_ANDROID)
|
||||||
typedef struct android_app; // Define android_app struct (android_native_app_glue.h)
|
typedef struct android_app; // Define android_app struct (android_native_app_glue.h)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
@ -448,14 +449,14 @@ typedef enum { LIGHT_POINT, LIGHT_DIRECTIONAL, LIGHT_SPOT } LightType;
|
||||||
|
|
||||||
// Ray type (useful for raycast)
|
// Ray type (useful for raycast)
|
||||||
typedef struct Ray {
|
typedef struct Ray {
|
||||||
Vector3 position;
|
Vector3 position; // Ray position (origin)
|
||||||
Vector3 direction;
|
Vector3 direction; // Ray direction
|
||||||
} Ray;
|
} Ray;
|
||||||
|
|
||||||
// Sound source type
|
// Sound source type
|
||||||
typedef struct Sound {
|
typedef struct Sound {
|
||||||
unsigned int source;
|
unsigned int source; // Sound audio source id
|
||||||
unsigned int buffer;
|
unsigned int buffer; // Sound audio buffer id
|
||||||
} Sound;
|
} Sound;
|
||||||
|
|
||||||
// Wave type, defines audio wave data
|
// Wave type, defines audio wave data
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue