Example #1
0
 public static bool GetKey(GlfwWindowPtr window, Key key)
 {
     return(GlfwDelegates.glfwGetKey(window, key) != 0);
 }
Example #2
0
 public static GlfwMonitorPtr GetPrimaryMonitor()
 {
     return(GlfwDelegates.glfwGetPrimaryMonitor());
 }
Example #3
0
 public static void GetMonitorPhysicalSize(GlfwMonitorPtr monitor, out int width, out int height)
 {
     GlfwDelegates.glfwGetMonitorPhysicalSize(monitor, out width, out height);
 }
Example #4
0
 public static void SwapInterval(int interval)
 {
     GlfwDelegates.glfwSwapInterval(interval);
 }
Example #5
0
 public static IntPtr GetProcAddress(string procname)
 {
     return(GlfwDelegates.glfwGetProcAddress(procname));
 }
Example #6
0
 public static void SetTime(double time)
 {
     GlfwDelegates.glfwSetTime(time);
 }
Example #7
0
 public static GlfwWindowPtr GetCurrentContext()
 {
     return(GlfwDelegates.glfwGetCurrentContext());
 }
Example #8
0
 public static GlfwCharFun SetCharCallback(GlfwWindowPtr window, GlfwCharFun cbfun)
 {
     charFun = cbfun;
     return(GlfwDelegates.glfwSetCharCallback(window, cbfun));
 }
Example #9
0
 public static GlfwMouseButtonFun SetMouseButtonCallback(GlfwWindowPtr window, GlfwMouseButtonFun cbfun)
 {
     mouseButtonFun = cbfun;
     return(GlfwDelegates.glfwSetMouseButtonCallback(window, cbfun));
 }
Example #10
0
 public static void SetCursorPos(GlfwWindowPtr window, double xpos, double ypos)
 {
     GlfwDelegates.glfwSetCursorPos(window, xpos, ypos);
 }
Example #11
0
 public static GlfwKeyFun SetKeyCallback(GlfwWindowPtr window, GlfwKeyFun cbfun)
 {
     keyFun = cbfun;
     return(GlfwDelegates.glfwSetKeyCallback(window, cbfun));
 }
Example #12
0
 public static void Terminate()
 {
     GlfwDelegates.glfwTerminate();
 }
Example #13
0
 public static void GetCursorPos(GlfwWindowPtr window, out double xpos, out double ypos)
 {
     GlfwDelegates.glfwGetCursorPos(window, out xpos, out ypos);
 }
Example #14
0
 public static bool GetMouseButton(GlfwWindowPtr window, MouseButton button)
 {
     return(GlfwDelegates.glfwGetMouseButton(window, button) != 0);
 }
Example #15
0
 public static double GetTime()
 {
     return(GlfwDelegates.glfwGetTime());
 }
Example #16
0
 public static GlfwCursorEnterFun SetCursorEnterCallback(GlfwWindowPtr window, GlfwCursorEnterFun cbfun)
 {
     cursorEnterFun = cbfun;
     return(GlfwDelegates.glfwSetCursorEnterCallback(window, cbfun));
 }
Example #17
0
 public static string GetVersionString()
 {
     return(new string(GlfwDelegates.glfwGetVersionString()));
 }
Example #18
0
 public static GlfwScrollFun SetScrollCallback(GlfwWindowPtr window, GlfwScrollFun cbfun)
 {
     scrollFun = cbfun;
     return(GlfwDelegates.glfwSetScrollCallback(window, cbfun));
 }
Example #19
0
 public static void MakeContextCurrent(GlfwWindowPtr window)
 {
     GlfwDelegates.glfwMakeContextCurrent(window);
 }
Example #20
0
 public static bool JoystickPresent(Joystick joy)
 {
     return(GlfwDelegates.glfwJoystickPresent(joy) == 1);
 }
Example #21
0
 public static void SwapBuffers(GlfwWindowPtr window)
 {
     GlfwDelegates.glfwSwapBuffers(window);
 }
Example #22
0
 public static void GetVersion(out int major, out int minor, out int rev)
 {
     GlfwDelegates.glfwGetVersion(out major, out minor, out rev);
 }
Example #23
0
 public static bool ExtensionSupported(string extension)
 {
     return(GlfwDelegates.glfwExtensionSupported(extension) == 1);
 }
Example #24
0
 public static string GetJoystickName(Joystick joy)
 {
     return(new string(GlfwDelegates.glfwGetJoystickName(joy)));
 }
Example #25
0
 public static GlfwErrorFun SetErrorCallback(GlfwErrorFun cbfun)
 {
     errorCallback = cbfun;
     return(GlfwDelegates.glfwSetErrorCallback(cbfun));
 }
Example #26
0
 public static void SetClipboardString(GlfwWindowPtr window, string @string)
 {
     GlfwDelegates.glfwSetClipboardString(window, @string);
 }
Example #27
0
 public static void GetMonitorPos(GlfwMonitorPtr monitor, out int xpos, out int ypos)
 {
     GlfwDelegates.glfwGetMonitorPos(monitor, out xpos, out ypos);
 }
Example #28
0
 public static string GetClipboardString(GlfwWindowPtr window)
 {
     return(new string(GlfwDelegates.glfwGetClipboardString(window)));
 }
Example #29
0
 public static string GetMonitorName(GlfwMonitorPtr monitor)
 {
     return(new string(GlfwDelegates.glfwGetMonitorName(monitor)));
 }
Example #30
0
 public static void SetInputMode(GlfwWindowPtr window, InputMode mode, CursorMode value)
 {
     GlfwDelegates.glfwSetInputMode(window, mode, value);
 }