Commit graph

2352 commits

Author SHA1 Message Date
UnknownShadow200
44617d1a26 Fix client crashing on invalid side/edge blocks. Partially addresses #27. (Thanks Cheesse!) 2015-06-27 08:22:12 +10:00
UnknownShadow200
f932b23ce5 Rearrange particle classes into separate folder, move selection box comparsions to own class, optimise memory allocation and size of SelectionBox class. 2015-06-24 19:48:12 +10:00
UnknownShadow200
78d334c310 Simplify ErrorScreen. 2015-06-24 18:47:53 +10:00
UnknownShadow200
acf2c849dd Do not recreate block info texture when selected index hasn't changed. 2015-06-24 17:54:02 +10:00
UnknownShadow200
1278d34c24 Refactor player list widgets, fix oversight in NetworkProcessor where servers that specified an incorrect extension count resulted in the client sending multiple ExtInfo packets. 2015-06-24 17:16:27 +10:00
UnknownShadow200
cb32f32912 Fix using wrong axis length for determining outside map coordinates in WeatherRenderer. 2015-06-20 16:38:37 +10:00
UnknownShadow200
6230985375 Update readme for Mono (and Linux) support. 2015-06-19 11:54:25 +10:00
UnknownShadow200
918e81f8bb Add runtime warning when running a build without the Mono workaround on Mono. 2015-06-19 11:45:21 +10:00
UnknownShadow200
8898d0722b Fix map chunk decompressing with Mono. 2015-06-19 11:16:15 +10:00
UnknownShadow200
ac3b1b0571 Fix chunk loading. (oops). 2015-06-18 16:41:35 +10:00
UnknownShadow200
3294540246 Add starting vertex and index to DrawIndexedVb, combine 'Vb1' and 'Vb2' into single 'Vb' in MapRenderer class. 2015-06-16 20:09:11 +10:00
UnknownShadow200
dfab27c49c Dispose device properly in Direct3D 9 api. 2015-06-15 19:57:13 +10:00
UnknownShadow200
97c1e598f6 Fix 2D textures sampling slightly incorrectly in Direct3D 9 api. Fixed BlockSelectScreen and slightly blurry text input bars. 2015-06-15 19:53:48 +10:00
UnknownShadow200
ee54140af4 Remove leftover debug code. 2015-06-15 19:17:15 +10:00
UnknownShadow200
274b742a25 Optimise map rendering slightly. (memory side) 2015-06-15 19:15:58 +10:00
UnknownShadow200
32b37262b7 Don'
t use yield return in SelectionManager.
2015-06-13 12:04:11 +10:00
UnknownShadow200
55c3e7557f Remove more overloads in OpenTK, fix bug with players not being rendered correctly in DirectX api. 2015-06-13 07:39:51 +10:00
UnknownShadow200
54fd9887b3 Remove even more unused enums/functions from OpenTK. 2015-06-13 06:40:26 +10:00
UnknownShadow200
a4e4096078 Remove some enums and overloads in OpenTK. 2015-06-12 18:17:54 +10:00
UnknownShadow200
e6cb869178 Remove more unused GL functions and overloads, prefer &id format in OpenGLApi. 2015-06-12 18:00:32 +10:00
UnknownShadow200
a09518c520 Minimise fog state changes. 2015-06-12 17:22:17 +10:00
UnknownShadow200
7e12913932 Minimise EnableClientState/DisableClientState calls. 2015-06-12 17:08:06 +10:00
UnknownShadow200
d60077f003 Can use custom view distances with /client info viewdist [value], fix most of the map sides/edges bleeding issues with 16 bit depth buffers. 2015-06-08 12:19:18 +10:00
UnknownShadow200
f31af21aeb Use CaselessEquals or CaselessStarts in Utils class. 2015-06-08 11:41:45 +10:00
UnknownShadow200
3b5bb87341 Do not create temporary context with X11. 2015-06-08 10:06:08 +10:00
UnknownShadow200
8918b146aa Remove unused variables. 2015-06-08 09:48:14 +10:00
UnknownShadow200
21fb55f292 Integrate OpenTK into the solution. 2015-06-07 08:53:12 +10:00
UnknownShadow200
c145cc2510 Inline Restoring and Setting up VBO state in OpenGLApi. 2015-06-07 06:59:52 +10:00
UnknownShadow200
506e3b8dba Use device.SetRenderState directly instead of RenderStateManager. 2015-06-06 18:24:14 +10:00
UnknownShadow200
27d9d3d8a5 Oops, now use AnyCpu for non-debug_DX32 builds. 2015-06-06 12:09:46 +10:00
UnknownShadow200
270f90102a Add Debug_DX32 project configuration that uses Direct3D api. (debug and release still use OpenGL api) 2015-06-06 12:06:50 +10:00
UnknownShadow200
ee5d8c4529 Fix 2D in Direct3D api, optimise MatrixStack. 2015-06-06 10:41:28 +10:00
UnknownShadow200
fa22afb556 Replace DeleteTexture code with call to Delete in Direct3D api, remove GetSizeInBytes from IGraphicsApi. 2015-06-06 09:21:41 +10:00
UnknownShadow200
777244dc4b Use state. instead of device.RenderState. in Direct3D api. 2015-06-06 07:42:46 +10:00
UnknownShadow200
bb9b892252 Fix dynamic VB drawing in Direct3D api. 2015-06-06 07:33:39 +10:00
UnknownShadow200
6b94c23aba Fix culling, fix indexed vbs in Direct3D api. 2015-06-06 07:26:39 +10:00
UnknownShadow200
4440f5a92f Swap TexCoords and Colour in VertexPos3fCol4bTex2f to match Direct3D's expected order. 2015-06-06 07:23:18 +10:00
UnknownShadow200
a1161b2e2e Now Direct3D sort of works. 2015-06-06 07:12:06 +10:00
UnknownShadow200
3035b3583b Now get Direct3D device to create properly. 2015-06-06 06:59:54 +10:00
UnknownShadow200
01de650f67 Use BGRA ordering in DirectX mode, use global 'USE_DX' define. 2015-06-06 06:44:50 +10:00
UnknownShadow200
e395eae957 Added BeginFrame/EndFrame to IGraphicsApi. 2015-06-05 17:52:45 +10:00
UnknownShadow200
bdd41a8f24 Update to latest OpenTK. 2015-06-05 17:48:25 +10:00
UnknownShadow200
32884159a0 Remove Point3S struct in MapRenederer, replace with CentreX/Y/Z fields in ChunkInfo class. 2015-06-05 06:18:23 +10:00
UnknownShadow200
e1ad415031 Update Direct3D api again (untested). 2015-06-04 06:16:35 +10:00
UnknownShadow200
9489440622 Remove rotation from the one spider leg, as the seven others didn't rotate. 2015-06-02 16:17:50 +10:00
UnknownShadow200
a13b88c81c Use single VB for all other models (untested). 2015-06-01 06:45:22 +10:00
UnknownShadow200
b07dff9bf6 PlayerModel now uses single VB. 2015-06-01 06:29:09 +10:00
UnknownShadow200
2c18ebc5bb Add offset parameter to DrawVb/DrawVbBatch. 2015-06-01 06:17:09 +10:00
UnknownShadow200
aba1ae465c Remove IndexedVbInfo, trim 'Vertex' from VertexFormat enum. 2015-05-31 17:00:34 +10:00
UnknownShadow200
c8ace076f5 Use single DrawVb method. 2015-05-31 16:58:45 +10:00