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