예제 #1
0
 public static bool ExtensionSupported(string extension)
 {
     return(GlfwDelegates.glfwExtensionSupported(extension) == 1);
 }
예제 #2
0
 public static void SetMouseButtonCallback(GlfwMouseButtonFun cbfun)
 {
     mouseButtonFun = cbfun;
     GlfwDelegates.glfwSetMouseButtonCallback(cbfun);
 }
예제 #3
0
 public static int GetJoystickParam(Joystick joy, int param)
 {
     return(GlfwDelegates.glfwGetJoystickParam((int)joy, param));
 }
예제 #4
0
 public static void SetMouseWheel(int pos)
 {
     GlfwDelegates.glfwSetMouseWheel(pos);
 }
예제 #5
0
 public static void SetCharCallback(GlfwCharFun cbfun)
 {
     charFun = cbfun;
     GlfwDelegates.glfwSetCharCallback(cbfun);
 }
예제 #6
0
 public static bool GetMouseButton(MouseButton button)
 {
     return(GlfwDelegates.glfwGetMouseButton((int)button) == 1);
 }
예제 #7
0
 public static void SetMousePos(int xpos, int ypos)
 {
     GlfwDelegates.glfwSetMousePos(xpos, ypos);
 }
예제 #8
0
 public static void GetMonitorPhysicalSize(GlfwMonitorPtr monitor, out int width, out int height)
 {
     GlfwDelegates.glfwGetMonitorPhysicalSize(monitor, out width, out height);
 }
예제 #9
0
 public static string GetMonitorName(GlfwMonitorPtr monitor)
 {
     return(new string(GlfwDelegates.glfwGetMonitorName(monitor)));
 }
예제 #10
0
 public static GlfwMonitorPtr GetPrimaryMonitor()
 {
     return(GlfwDelegates.glfwGetPrimaryMonitor());
 }
예제 #11
0
 public static void GetMonitorPos(GlfwMonitorPtr monitor, out int xpos, out int ypos)
 {
     GlfwDelegates.glfwGetMonitorPos(monitor, out xpos, out ypos);
 }
예제 #12
0
 public static void SetErrorCallback(GlfwErrorFun cbfun)
 {
     GlfwDelegates.glfwSetErrorCallback(cbfun);
 }
예제 #13
0
 public static IntPtr GetProcAddress(string procname)
 {
     return(GlfwDelegates.glfwGetProcAddress(procname));
 }
예제 #14
0
 public static string GetVersionString()
 {
     return(new string(GlfwDelegates.glfwGetVersionString()));
 }
예제 #15
0
 public static void Terminate()
 {
     GlfwDelegates.glfwTerminate();
 }
예제 #16
0
 public static void SetMonitorCallback(GlfwMonitorFun cbfun)
 {
     GlfwDelegates.glfwSetMonitorCallback(cbfun);
 }
예제 #17
0
 public static bool GetKey(char key)
 {
     return(GlfwDelegates.glfwGetKey((int)key) == 1);
 }
예제 #18
0
 public static void SetWindowCloseCallback(GlfwWindowCloseFun cbfun)
 {
     windowCloseFun = cbfun;
     GlfwDelegates.glfwSetWindowCloseCallback(cbfun);
 }
예제 #19
0
 public static void GetMousePos(out int xpos, out int ypos)
 {
     GlfwDelegates.glfwGetMousePos(out xpos, out ypos);
 }
예제 #20
0
 public static void SetWindowRefreshCallback(GlfwWindowRefreshFun cbfun)
 {
     windowRefreshFun = cbfun;
     GlfwDelegates.glfwSetWindowRefreshCallback(cbfun);
 }
예제 #21
0
 public static int GetMouseWheel()
 {
     return(GlfwDelegates.glfwGetMouseWheel());
 }
예제 #22
0
 public static int GetVideoModes(GlfwVidMode[] list, int maxcount)
 {
     return(GlfwDelegates.glfwGetVideoModes(list, maxcount));
 }
예제 #23
0
 public static void SetKeyCallback(GlfwKeyFun cbfun)
 {
     keyFun = cbfun;
     GlfwDelegates.glfwSetKeyCallback(cbfun);
 }
예제 #24
0
 public static void GetDesktopMode(out GlfwVidMode mode)
 {
     GlfwDelegates.glfwGetDesktopMode(out mode);
 }
예제 #25
0
 public static void GetVersion(out int major, out int minor, out int rev)
 {
     GlfwDelegates.glfwGetVersion(out major, out minor, out rev);
 }
예제 #26
0
 public static void PollEvents()
 {
     GlfwDelegates.glfwPollEvents();
 }
예제 #27
0
 public static void SetMouseWheelCallback(GlfwMouseWheelFun cbfun)
 {
     mouseWheelFun = cbfun;
     GlfwDelegates.glfwSetMouseWheelCallback(cbfun);
 }
예제 #28
0
 public static void WaitEvents()
 {
     GlfwDelegates.glfwWaitEvents();
 }
예제 #29
0
 public static int GetJoystickPos(Joystick joy, float[] pos, int numaxes)
 {
     return(GlfwDelegates.glfwGetJoystickPos((int)joy, pos, numaxes));
 }
예제 #30
0
 public static void SwapInterval(bool interval)
 {
     GlfwDelegates.glfwSwapInterval(interval ? 1 : 0);
 }