Commit graph

156 commits

Author SHA1 Message Date
UnknownShadow200
a17cda3d3c Print to console when DEBUG_OPENTK is defined instead of using System.Diagnostics.Debug, fixes crashing on Mono and fixes #63. 2015-09-10 13:48:21 +10:00
UnknownShadow200
52d249b84a Calls to CursorVisible must be balanced, fixes #62. 2015-09-10 06:34:24 +10:00
UnknownShadow200
96aaec9dea We have to actually indicate that we handled MouseWheel window message, fixes #57. 2015-09-07 17:49:07 +10:00
UnknownShadow200
6df70aa383 Don't use face culling for translucent liquids, fixes #55. 2015-09-06 17:33:00 +10:00
UnknownShadow200
f3306f48fd Fix setting cursor position on X11, fixes #36. 2015-09-04 19:57:55 +10:00
UnknownShadow200
6f63292268 Add cursor showing and hiding on X11, use our own method of setting X11 cursor position to avoid having to load System.Windows.Forms on Mono. 2015-09-04 19:50:01 +10:00
UnknownShadow200
4769e7dbbd Implement cursor hiding on Windows to partially address #36. (Will do Linux backend next) 2015-09-04 06:55:12 +10:00
UnknownShadow200
9394ce1794 Use more flexible dynamic vertex buffers in Direct3D9 api, in preparation for #45. 2015-09-02 20:27:41 +10:00
UnknownShadow200
c163ebcb59 Proper fix of UnsafeString on windows platforms - should fix input text and block info string. 2015-09-02 19:44:24 +10:00
UnknownShadow200
f33428a531 Implement ability to perform partial update of textures on both graphics api backends. Partially addresses #44. 2015-09-02 18:33:13 +10:00
UnknownShadow200
7baf64051f Add proper singleplayer support. Can generate new flatgrass worlds with /client gen, also the client starts singleplayer when no arguments are provided. 2015-09-01 17:24:01 +10:00
UnknownShadow200
c6d797aebc Properly respond to changes in yaw and pitch sent by server. Fix bug with InterpAngle when passing from <90 to >270 degrees. 2015-08-22 14:01:12 +10:00
UnknownShadow200
a67d44a25c Finally get the solution to properly compile with MonoDevelop. 2015-08-22 08:04:01 +10:00
UnknownShadow200
539b6694d1 Fix building on MonoDevelop, log web exceptions in Launcher. 2015-08-22 07:49:57 +10:00
UnknownShadow200
921860b327 Add InteropPatcher to solution, fix InteropPatcher not working properly with some older IDEs. 2015-08-22 07:33:44 +10:00
UnknownShadow200
9d9ca55a7c Make everything in OpenTK have consistent whitespace, simplified detecting unix kernel, combined INativeWindow and IInputDriver. 2015-08-22 06:50:23 +10:00
UnknownShadow200
53fbe02e42 More cleanup in OpenTK. Avoid calling PeekMessage then GetMessage in WinGLNative, we can just use PeekMessage with PM_Remove. 2015-08-18 18:58:35 +10:00
UnknownShadow200
50209b22ad Remove unused joystick code. 2015-08-17 20:03:21 +10:00
UnknownShadow200
40ce65ab09 Combine factory definitions into one file, simplify WinGLContext. 2015-08-17 20:00:03 +10:00
UnknownShadow200
1eb12e83eb X11 cleanup. (Untested) 2015-08-16 16:28:56 +10:00
UnknownShadow200
09912f3d79 Simplify various apis in OpenTK. 2015-08-16 13:13:12 +10:00
UnknownShadow200
12814a308b Simplify event classes, combine various input interfaces into one interfaces file. 2015-08-16 11:41:01 +10:00
UnknownShadow200
09939603de Simplify Vector and Matrix structs. 2015-08-16 10:51:14 +10:00
UnknownShadow200
9d73e2492d Integrate SharpDX into OpenTK. 2015-08-16 10:16:59 +10:00
UnknownShadow200
4e34637a05 Minor code cleanup. 2015-08-15 13:51:22 +10:00
UnknownShadow200
1590664f68 Make IGraphicsApi even more consistent. 2015-08-04 07:17:20 +10:00
UnknownShadow200
efc7b0bfe6 Use stackalloc to avoid allocating index buffer on LOH, remove Is<X> methods in IGraphicsApi and make IGraphicsApi more consistent. 2015-08-04 06:32:12 +10:00
UnknownShadow200
281e815125 Significantly reduce allocation of GCHandles, replace with inlined fixed statement in GL class. 2015-08-03 20:08:04 +10:00
UnknownShadow200
df879604f2 Major rewrite of graphics APIs: Use SharpDX instead of Managed DirectX (64 bit works now), rewrite OpenTK GL class to use calli instructions. 2015-07-28 06:53:22 +10:00
UnknownShadow200
e2d154d2c4 Cleanup in OpenTK. 2015-07-27 19:17:25 +10:00
UnknownShadow200
5f7aafc8e1 Remove Color4 and unused VirtualKey definitions. 2015-07-27 17:06:35 +10:00
UnknownShadow200
f99e9eeb3a Fix crashing on close, remove file that somehow magically appeared? 2015-07-21 19:05:59 +10:00
UnknownShadow200
25d7cbda9e Combine player rendering functions into Player class, remove D3DX reference since we longer need it. 2015-07-21 18:48:51 +10:00
UnknownShadow200
7c1479526a Release 0.8. This will likely be the last work done on the client for a while. 2015-07-10 07:40:25 +10:00
UnknownShadow200
f7b40a3d21 Don't keep track of 'CurrentContext', don't pass opengl version to game window constructor as it is unnecessary, don't bother with reflection because we only really need to load 51 delegates. 2015-07-10 07:07:19 +10:00
UnknownShadow200
54119d0281 Remove ContextHandle and just use IntPtr, cache DC in WindowsGLContext, use native platform GetCurrentContext delegate in GraphicsContext. 2015-07-10 06:30:09 +10:00
UnknownShadow200
062758a7b0 Implement proper resizing handling in Direct3D api. 2015-07-09 10:10:33 +10:00
UnknownShadow200
9436afb3f3 Simplify classes that load unmanaged functions statically or dynamically. Remove unncessary namespaces from many declarations in both GL delegates and core class. 2015-07-06 18:04:32 +10:00
UnknownShadow200
8687378509 Simplify AGL class, remove code that was used for GLControl. 2015-07-06 11:04:00 +10:00
UnknownShadow200
a78ddb6979 Make AGL api more consistent. 2015-07-06 10:46:31 +10:00
UnknownShadow200
69e1050ee1 Standardise usings in MacOS api. 2015-07-06 10:22:48 +10:00
UnknownShadow200
152133d95c Only call PickingRender when PickedPos is valid, remove some leftover stuff from UpdateFrame, combine SendPlayerClick functions as one function. 2015-07-02 07:35:28 +10:00
UnknownShadow200
273f4f5611 Remove samples/stereo from GraphicsMode, remove some other unused constructors and exceptions. 2015-07-02 06:33:19 +10:00
UnknownShadow200
ec0cb6b997 Do not create temp window when choosing a pixel format on Windows. Simplify X11 glx api and choosing functions. 2015-07-01 16:58:24 +10:00
UnknownShadow200
9a52cd317f Use optimised matrix multiplication code from later version of OpenTK. 2015-06-30 07:46:37 +10:00
UnknownShadow200
7439ee727a Directly call delegates in OpenGL api, remove some unused functions from OpenTK, only use glLoadMatrix and glMultMatrix. 2015-06-30 07:00:34 +10:00
UnknownShadow200
07471e54d7 Keep track of picked block face in PickedPos class, rearrange MouseButton enum order to match CPE PlayerClick specification. 2015-06-28 19:55:29 +10:00
UnknownShadow200
83b2228896 Do not write depth values for translucent blocks (already calculated them in depth pass), remove unused adapative VSync code. 2015-06-27 19:53:24 +10:00
UnknownShadow200
d2fc5bd20e Don't check for X11 on windows, cache EventArgs in Game class, remove update variables from OpenTK.GameWindow 2015-06-27 13:57:16 +10:00
UnknownShadow200
0504a266e0 Remove unused OpenTK.UpdateFrame code. 2015-06-27 13:16:46 +10:00