diff options
| author | victorfisac <victorfisac@gmail.com> | 2016-01-11 15:09:23 +0100 |
|---|---|---|
| committer | victorfisac <victorfisac@gmail.com> | 2016-01-11 15:09:23 +0100 |
| commit | 8eb6fc5612da86e4fc196ed9719949748ed08d85 (patch) | |
| tree | 534c4b2f488e6cb0e650316fbee2b9d7a4d12664 /src/raylib.h | |
| parent | a5e79b7663532b4420d91ee9adb7265f06847624 (diff) | |
| parent | 5e7686695fcfe32bbf956990ced0a02b7c881af1 (diff) | |
| download | raylib-8eb6fc5612da86e4fc196ed9719949748ed08d85.tar.gz raylib-8eb6fc5612da86e4fc196ed9719949748ed08d85.zip | |
Merge remote-tracking branch 'refs/remotes/raysan5/develop' into develop
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/src/raylib.h b/src/raylib.h index b6900a97..4d8d104d 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -378,22 +378,22 @@ typedef struct Wave { // Light type typedef struct Light { - float position[3]; - float rotation[3]; - float intensity[1]; - float ambientColor[3]; - float diffuseColor[3]; - float specularColor[3]; - float specularIntensity[1]; + Vector3 position; + Vector3 direction; + float intensity; + float specIntensity; + Color diffuse; + Color ambient; + Color specular; } Light; // Material type typedef struct Material { - float ambientColor[3]; - float diffuseColor[3]; - float specularColor[3]; - float glossiness[1]; - float normalDepth[1]; + Color diffuse; + Color ambient; + Color specular; + float glossiness; + float normalDepth; } Material; // Texture formats @@ -535,6 +535,9 @@ float GetFrameTime(void); // Returns time in s Color GetColor(int hexValue); // Returns a Color struct from hexadecimal value int GetHexValue(Color color); // Returns hexadecimal value for a Color +float *ColorToFloat(Color color); // Converts Color to float array and normalizes +float *VectorToFloat(Vector3 vec); // Converts Vector3 to float array (defined in raymath module) +float *MatrixToVector(Matrix mat); // Converts Matrix to float array (defined in raymath module) 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 |
