diff options
| author | victorfisac <victorfisac@gmail.com> | 2016-05-30 19:18:11 +0200 |
|---|---|---|
| committer | victorfisac <victorfisac@gmail.com> | 2016-05-30 19:18:11 +0200 |
| commit | 2e26ce235d00fdc633559f9404ddd8ec70c96df7 (patch) | |
| tree | 69aa39306bf42ddd92de8cc3bec5c2f4d98aa81f /src/raylib.h | |
| parent | ae2d0d4cd8739c49b1a4e230e6f1ca4a8bdab319 (diff) | |
| download | raylib-2e26ce235d00fdc633559f9404ddd8ec70c96df7.tar.gz raylib-2e26ce235d00fdc633559f9404ddd8ec70c96df7.zip | |
Add Draw3DCircle function and update raylib and rlgl header
Draw3DCircle is useful to draw point lights radius.
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h index d0231be2..0af7ef31 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -437,7 +437,7 @@ typedef struct LightData { Vector3 position; Vector3 target; // Used on LIGHT_DIRECTIONAL and LIGHT_SPOT (cone direction target) - float attenuation; // Lost of light intensity with distance (world distance) + float radius; // Lost of light intensity with distance (world distance) Color diffuse; // Light color float intensity; // Light intensity level @@ -803,6 +803,7 @@ const char *SubText(const char *text, int position, int length); // Basic 3d Shapes Drawing Functions (Module: models) //------------------------------------------------------------------------------------ void Draw3DLine(Vector3 startPos, Vector3 endPos, Color color); // Draw a line in 3D world space +void Draw3DCircle(Vector3 center, float radius, float rotationAngle, Vector3 rotation, Color color); // Draw a circle in 3D world space void DrawCube(Vector3 position, float width, float height, float lenght, Color color); // Draw cube void DrawCubeV(Vector3 position, Vector3 size, Color color); // Draw cube (Vector version) void DrawCubeWires(Vector3 position, float width, float height, float lenght, Color color); // Draw cube wires |
