Skyline Lua API  Version 1.0 RC1
Lua Script Reference for Skyline Game Engine.
LUA_API_Screen.h
Go to the documentation of this file.
1 // | _ ____ __ _
2 // | / \ _ _ _ __ __ _/ ___| ___ / _| |_
3 // | / _ \| | | | '__/ _` \___ \ / _ \| |_| __|
4 // | / ___ \ |_| | | | (_| |___) | (_) | _| |_
5 // | /_/ \_\__,_|_| \__,_|____/ \___/|_| \__|
6 // |
7 // | Aurasoft UK 2008 - 2016 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 - 2016
16 // |
17 
18 // SKYLINE LUA CLASS FOR API DOCUMENTATION
19 
27 class screen
28 {
29 public:
30 
42  int getWidth();
43 
44 
56  int getHeight();
57 
58 
70  int getMouseX();
71 
72 
84  int getMouseY();
85 
99  void getMouseDelta();
100 
114  screen.worldPosToScreenPos( x,y,z );
115 
130 
144  screen.worldPosInFrustum( x,y,z );
145 
159  screen.worldPosInFront( x,y,z );
160 
161 };
int getWidth()
This function returns the width of the screen.
int getMouseX()
This function returns the mouse x screen coordinate.
screen worldPosInFront(x, y, z)
World Position in front.
int getMouseY()
This function returns the mouse y screen coordinate.
screen worldPosToAbsScreenPos(x, y, z)
World Position to absolute screen position.
screen worldPosToScreenPos(x, y, z)
World Position to screen position.
Definition: LUA_API_Screen.h:27
screen worldPosInFrustum(x, y, z)
World Position Frustum.
void getMouseDelta()
This function returns you the X and Y mouse move deltas calculated within the engine.
int getHeight()
This function returns the height of the screen.