Skyline Lua API  Version 1.0
Lua Script Reference for Skyline Game Engine.
LUA_API_Draw.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 
97 class draw
98 {
99 public:
100 
119  void autoClear(int state);
120 
138  void line(newType.vec3 lineStartV3, newType.vec3 lineEndV3, newType.color lineColour);
139 
159  void clear();
160 
161 
162 
184  void circle(vec3 position, float radius, float segment, color col);
185 
186 
208  void circleFilled(vec3 position, float radius, float segment, color col);
209 
210 
233  void cylinder(vec3 position, float radius, float segment, float height, color col);
234 
235 
258  void cylinderFilled(vec3 position, float radius, float segment, float height, color col);
259 
280  void tetra(vec3 position, float scale, color col);
281 
282 
303  void tetraFilled(vec3 position, float scale, color col);
304 
305 
327  void sphere(vec3 position, float radius, float smooth, color col);
328 
329 
351  void sphereFilled(vec3 position, float radius, float smooth, color col);
352 
372  void cube(vec3 position, float scale, color col);
373 
393  void cubeFilled(vec3 position, float scale, color col);
394 
395 
396 };
void line(newType.vec3 lineStartV3, newType.vec3 lineEndV3, newType.color lineColour)
Draws a simple colored line between 2 vec3 vars.
void cubeFilled(vec3 position, float scale, color col)
Draws a filled cube.
Definition: LUA_API_Draw.h:97
void cube(vec3 position, float scale, color col)
Draws a cube.
void autoClear(int state)
Enables the update loop drawing clear routine. This is active by default.
void cylinderFilled(vec3 position, float radius, float segment, float height, color col)
Draws a filled cylinder.
void sphereFilled(vec3 position, float radius, float smooth, color col)
Draws a filled sphere.
Definition: LUA_API_Type.h:83
void tetraFilled(vec3 position, float scale, color col)
Draws a filled tetra.
void circleFilled(vec3 position, float radius, float segment, color col)
Draws a filled circle.
Definition: LUA_API_States.h:28
void tetra(vec3 position, float scale, color col)
Draws a tetra.
int vec3()
Returns a special table which is required when passing data between various commands.
int color()
Returns a special table which is required when passing data between various commands.
void cylinder(vec3 position, float radius, float segment, float height, color col)
Draws a cylinder.
void sphere(vec3 position, float radius, float smooth, color col)
Draws a sphere.
void clear()
Forces the drawing to be cleared.
void circle(vec3 position, float radius, float segment, color col)
Draws a circle.