Skyline Lua API  Version 1.0
Lua Script Reference for Skyline Game Engine.
LUA_API_Light.h
Go to the documentation of this file.
1 // | _ ____ __ _
2 // | / \ _ _ _ __ __ _/ ___| ___ / _| |_
3 // | / _ \| | | | '__/ _` \___ \ / _ \| |_| __|
4 // | / ___ \ |_| | | | (_| |___) | (_) | _| |_
5 // | /_/ \_\__,_|_| \__,_|____/ \___/|_| \__|
6 // |
7 // | Aurasoft UK 2008 - 2018 http://www.aurasoft.co.uk
8 // |
9 // | Skyline Game Engine Lua API Documentation
10 // |
11 // | This file belongs to Aurasoft UK for the Skyline Game Engine of all versions.
12 // | This file is not for use in any other software that is not owned by Aurasoft UK and cannot be used by any other
13 // | person outside of the Skyline Game Engine development team.
14 // |
15 // | © Copyright - Aurasoft UK & Skyline Game Engine 2008 - 2018
16 // |
17 
18 // SKYLINE LUA CLASS FOR API DOCUMENTATION
19 
94 class light
95 {
96 public:
97 
118  void setIntensity( int lightID, float intensityValue );
119 
139  void setBrightness( int lightID, float intensityValue );
140 
155  void setRange( int lightID, float rangeValue );
156 
172  void setDiffuseColor( int lightID, float colR, float colG, float colB );
173 
189  float3 getDiffuseColor( int lightID );
190 
206  int setSpecularColor( int lightID, float colR, float colG, float colB );
207 
223  float3 getSpecularColor( int lightID );
224 
225 
242  int spawnLight( int lightType, float posx, float posy, float posz );
243 
256  void enableShadows(int lightID);
257 
258 };
int setSpecularColor(int lightID, float colR, float colG, float colB)
Set the Specular Color of the light.
Definition: LUA_API_Light.h:94
void setDiffuseColor(int lightID, float colR, float colG, float colB)
Set the Diffuse Color of the light.
float3 getSpecularColor(int lightID)
Get the Specular color of a specific light and return the color to a float3.
void setBrightness(int lightID, float intensityValue)
Set the absolute setBrightness of a light.
void setIntensity(int lightID, float intensityValue)
Set the Intensity(Brightness) of a light. This is an accumulative effect.
int spawnLight(int lightType, float posx, float posy, float posz)
Spawns a light to the arg pos and returns the id of this light.
void setRange(int lightID, float rangeValue)
Set the Range of the light, this will affect how far the light will reach. Entities outside the rang...
float3 getDiffuseColor(int lightID)
Get the Diffuse color of a specific light and return the color to a float3.
void enableShadows(int lightID)
Set the enable state of this lights shadows.