summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2016-06-03 19:00:58 +0200
committerraysan5 <[email protected]>2016-06-03 19:00:58 +0200
commit60232810d83c7ea3a52491f0b20444003be53358 (patch)
tree59e40c6862a88affa8bcdba4979c6a8956581ac1 /src/raylib.h
parentd1133ca8d3a959c438ccf98f1c21f0ff24381b48 (diff)
downloadraylib-60232810d83c7ea3a52491f0b20444003be53358.tar.gz
raylib-60232810d83c7ea3a52491f0b20444003be53358.zip
Added some comments
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/raylib.h b/src/raylib.h
index bdaaeb08..706c4f4a 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -64,6 +64,7 @@
//#define PLATFORM_ANDROID // Android device
//#define PLATFORM_RPI // Raspberry Pi
//#define PLATFORM_WEB // HTML5 (emscripten, asm.js)
+//#define PLATFORM_OCULUS // Oculus Rift CV1
// Security check in case no PLATFORM_* defined
#if !defined(PLATFORM_DESKTOP) && !defined(PLATFORM_ANDROID) && !defined(PLATFORM_RPI) && !defined(PLATFORM_WEB)
@@ -71,7 +72,7 @@
#endif
#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
//----------------------------------------------------------------------------------
@@ -448,14 +449,14 @@ typedef enum { LIGHT_POINT, LIGHT_DIRECTIONAL, LIGHT_SPOT } LightType;
// Ray type (useful for raycast)
typedef struct Ray {
- Vector3 position;
- Vector3 direction;
+ Vector3 position; // Ray position (origin)
+ Vector3 direction; // Ray direction
} Ray;
// Sound source type
typedef struct Sound {
- unsigned int source;
- unsigned int buffer;
+ unsigned int source; // Sound audio source id
+ unsigned int buffer; // Sound audio buffer id
} Sound;
// Wave type, defines audio wave data