/
Reprocessing_Env.rei
54 lines (34 loc) · 1.52 KB
/
Reprocessing_Env.rei
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
let width: Reprocessing_Types.Types.glEnvT => int;
let height: Reprocessing_Types.Types.glEnvT => int;
let mouse: Reprocessing_Types.Types.glEnvT => (int, int);
let pmouse: Reprocessing_Types.Types.glEnvT => (int, int);
let mousePressed: Reprocessing_Types.Types.glEnvT => bool;
let keyCode: Reprocessing_Types.Types.glEnvT => Reprocessing_Events.keycodeT;
let key: (Reprocessing_Common.KeySet.elt, Reprocessing_Common.glEnv) => bool;
let keyPressed:
(Reprocessing_Common.KeySet.elt, Reprocessing_Common.glEnv) => bool;
let keyReleased:
(Reprocessing_Common.KeySet.elt, Reprocessing_Common.glEnv) => bool;
let size: (~width: int, ~height: int, Reprocessing_Types.Types.glEnvT) => unit;
let title: (string, Reprocessing_Types.Types.glEnvT) => unit;
let resizeable: (bool, Reprocessing_Types.Types.glEnvT) => unit;
let frameRate: Reprocessing_Types.Types.glEnvT => int;
let frameCount: Reprocessing_Types.Types.glEnvT => int;
let loadSound: (string, Reprocessing_Types.Types.glEnvT) => Reprocessing_Types.Types.soundT;
let playSound:
(
Reprocessing_Types.Types.soundT,
~volume: float=?,
~loop: bool=?,
Reprocessing_Types.Types.glEnvT
) =>
unit;
/*** Time in seconds since the last frame */
let deltaTime: Reprocessing_Types.Types.glEnvT => float;
/***
Localize a point in canvas coordinates to the current env's
transformed coordinates
*/
let localizePoint: ((int, int), Reprocessing_Types.Types.glEnvT) => (int, int);
let localizePointf:
((float, float), Reprocessing_Types.Types.glEnvT) => (float, float);