Beispiel #1
0
 public override bool Equals(object obj)
 {
     if (obj is WindowPtr)
     {
         WindowPtr other = (WindowPtr)obj;
         return(this == other);
     }
     return(false);
 }
Beispiel #2
0
 internal static extern int glfwGetWindowAttrib(WindowPtr window, int param);
		internal static extern void glfwHideWindow(WindowPtr window);
		internal static extern void glfwSetWindowSize(WindowPtr window, int width, int height);
		internal static extern void glfwSetWindowTitle(WindowPtr window, [MarshalAs(UnmanagedType.LPStr)] string title);
		internal static extern WindowPtr glfwCreateWindow(int width, int height, [MarshalAs(UnmanagedType.LPStr)] string title, MonitorPtr monitor, WindowPtr share);
		internal static extern void glfwMakeContextCurrent(WindowPtr window);
		internal static extern GlfwCursorEnterFun glfwSetCursorEnterCallback(WindowPtr window, GlfwCursorEnterFun cbfun);
Beispiel #9
0
 internal static extern int glfwGetInputMode(WindowPtr window, InputMode mode);
Beispiel #10
0
 internal static extern GlfwWindowIconifyFun glfwSetWindowIconifyCallback(WindowPtr window, GlfwWindowIconifyFun cbfun);
Beispiel #11
0
 internal static extern GlfwWindowFocusFun glfwSetWindowFocusCallback(WindowPtr window, GlfwWindowFocusFun cbfun);
Beispiel #12
0
 internal static extern GlfwWindowRefreshFun glfwSetWindowRefreshCallback(WindowPtr window, GlfwWindowRefreshFun cbfun);
Beispiel #13
0
 internal static extern GlfwWindowCloseFun glfwSetWindowCloseCallback(WindowPtr window, GlfwWindowCloseFun cbfun);
Beispiel #14
0
 internal static extern IntPtr glfwGetWindowUserPointer(WindowPtr window);
Beispiel #15
0
 internal static extern void glfwSetWindowUserPointer(WindowPtr window, IntPtr pointer);
		internal static extern void glfwSetCursorPos(WindowPtr window, double xpos, double ypos);
		internal static extern GlfwCharFun glfwSetCharCallback(WindowPtr window, GlfwCharFun cbfun);
Beispiel #18
0
 internal static extern void glfwSetInputMode(WindowPtr window, InputMode mode, CursorMode value);
		internal static extern void glfwSetClipboardString(WindowPtr window, [MarshalAs(UnmanagedType.LPStr)] string @string);
Beispiel #20
0
 internal static extern int glfwGetKey(WindowPtr window, Key key);
		internal static extern void glfwGetFramebufferSize(WindowPtr window, out int width, out int height);
Beispiel #22
0
 internal static extern int glfwGetMouseButton(WindowPtr window, MouseButton button);
		internal static extern int glfwWindowShouldClose(WindowPtr window);
Beispiel #24
0
 internal static extern void glfwSetCursorPos(WindowPtr window, double xpos, double ypos);
		internal static extern void glfwSetWindowPos(WindowPtr window, int xpos, int ypos);
Beispiel #26
0
 internal static extern GlfwKeyFun glfwSetKeyCallback(WindowPtr window, GlfwKeyFun cbfun);
		internal static extern void glfwRestoreWindow(WindowPtr window);
Beispiel #28
0
 internal static extern GlfwCharFun glfwSetCharCallback(WindowPtr window, GlfwCharFun cbfun);
		internal static extern int glfwGetWindowAttrib(WindowPtr window, int param);
Beispiel #30
0
 internal static extern GlfwMouseButtonFun glfwSetMouseButtonCallback(WindowPtr window, GlfwMouseButtonFun cbfun);
		internal static extern int glfwGetMouseButton(WindowPtr window, MouseButton button);
Beispiel #32
0
 internal static extern GlfwCursorEnterFun glfwSetCursorEnterCallback(WindowPtr window, GlfwCursorEnterFun cbfun);
		internal static extern GlfwKeyFun glfwSetKeyCallback(WindowPtr window, GlfwKeyFun cbfun);
Beispiel #34
0
 internal static extern GlfwScrollFun glfwSetScrollCallback(WindowPtr window, GlfwScrollFun cbfun);
		internal static extern GlfwMouseButtonFun glfwSetMouseButtonCallback(WindowPtr window, GlfwMouseButtonFun cbfun);
Beispiel #36
0
 internal static extern void glfwSetClipboardString(WindowPtr window, [MarshalAs(UnmanagedType.LPStr)] string @string);
		internal static extern GlfwScrollFun glfwSetScrollCallback(WindowPtr window, GlfwScrollFun cbfun);
Beispiel #38
0
 internal static extern IntPtr glfwGetClipboardString(WindowPtr window);
		internal static extern IntPtr glfwGetClipboardString(WindowPtr window);
Beispiel #40
0
 internal static extern void glfwMakeContextCurrent(WindowPtr window);
		internal static extern void glfwSwapBuffers(WindowPtr window);
Beispiel #42
0
 internal static extern void glfwSwapBuffers(WindowPtr window);
		internal static extern GlfwFramebufferSizeFun glfwSetFramebufferSizeCallback(WindowPtr window, GlfwFramebufferSizeFun cbfun);
Beispiel #44
0
 internal static extern void glfwGetFramebufferSize(WindowPtr window, out int width, out int height);
		internal static extern void glfwDestroyWindow(WindowPtr window);
Beispiel #46
0
 internal static extern GlfwFramebufferSizeFun glfwSetFramebufferSizeCallback(WindowPtr window, GlfwFramebufferSizeFun cbfun);
		internal static extern void glfwSetWindowShouldClose(WindowPtr window, int value);
Beispiel #48
0
 internal static extern WindowPtr glfwCreateWindow(int width, int height, [MarshalAs(UnmanagedType.LPStr)] string title, MonitorPtr monitor, WindowPtr share);
		internal static extern void glfwGetWindowPos(WindowPtr window, out int xpos, out int ypos);
Beispiel #50
0
 internal static extern void glfwDestroyWindow(WindowPtr window);
		internal static extern void glfwGetWindowSize(WindowPtr window, out int width, out int height);
Beispiel #52
0
 internal static extern int glfwWindowShouldClose(WindowPtr window);
		internal static extern void glfwIconifyWindow(WindowPtr window);
Beispiel #54
0
 internal static extern void glfwSetWindowShouldClose(WindowPtr window, int value);
		internal static extern void glfwShowWindow(WindowPtr window);
Beispiel #56
0
 internal static extern void glfwSetWindowTitle(WindowPtr window, [MarshalAs(UnmanagedType.LPStr)] string title);
		internal static extern MonitorPtr glfwGetWindowMonitor(WindowPtr window);
		internal static extern int glfwGetKey(WindowPtr window, Key key);
		internal static extern void glfwSetWindowUserPointer(WindowPtr window, IntPtr pointer);
Beispiel #60
0
 internal static extern MonitorPtr glfwGetWindowMonitor(WindowPtr window);