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