add function to retrieve time from GLFW
This commit is contained in:
@@ -51,3 +51,7 @@ void setClipboardString (GLFWwindow *window, const char *copyString) {
|
||||
glfwSetClipboardString(window, copyString);
|
||||
}
|
||||
|
||||
|
||||
double getTime() {
|
||||
return glfwGetTime();
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ struct
|
||||
|
||||
(* GLFW functions. *)
|
||||
val init = _import "init" public : unit -> unit;
|
||||
val getTime = _import "getTime" public : unit -> real;
|
||||
val windowHint = _import "windowHint" public : int * int -> unit;
|
||||
val createWindow =
|
||||
_import "createWindow" public : int * int * string -> window;
|
||||
|
||||
Reference in New Issue
Block a user