File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
packages/defold-orthographic Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ declare module 'orthographic.camera' {
43
43
* @param zoom The new zoom level of the camera
44
44
*/
45
45
export function set_zoom ( camera_id : hash | url | null , zoom : number ) : void ;
46
-
46
+
47
47
/**
48
48
* Shake the camera.
49
49
* @param camera_id (hash | url), null for the first camera
@@ -71,4 +71,20 @@ declare module 'orthographic.camera' {
71
71
* @param window Window coordinates to convert
72
72
*/
73
73
export function window_to_world ( camera_id : hash | url | null , window : vmath . vector3 ) : vmath . vector3 ;
74
+
75
+
76
+ /**
77
+ * Get the display size (ie from game.project).
78
+ */
79
+ export function get_display_size ( ) : LuaMultiReturn < [ number , number ] > ;
80
+
81
+ /**
82
+ * Get window size.
83
+ */
84
+ export function get_window_size ( ) : LuaMultiReturn < [ number , number ] > ;
85
+
86
+ /**
87
+ * Get list of camera ids.
88
+ */
89
+ export function get_cameras ( ) : Array < hash | url | null > ;
74
90
}
You can’t perform that action at this time.
0 commit comments