Skip to content

Commit 92cf0e6

Browse files
authored
add couple more functions to export (#21)
1 parent 21f51d8 commit 92cf0e6

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

packages/defold-orthographic/orthographic.camera.d.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ declare module 'orthographic.camera' {
4343
* @param zoom The new zoom level of the camera
4444
*/
4545
export function set_zoom(camera_id: hash | url | null, zoom: number): void;
46-
46+
4747
/**
4848
* Shake the camera.
4949
* @param camera_id (hash | url), null for the first camera
@@ -71,4 +71,20 @@ declare module 'orthographic.camera' {
7171
* @param window Window coordinates to convert
7272
*/
7373
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>;
7490
}

0 commit comments

Comments
 (0)