Commit graph

6313 commits

Author SHA1 Message Date
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
UnknownShadow200
0889c5f4df Use dynamic VBOs instead of immediate mode. 2015-05-31 12:59:03 +10:00
UnknownShadow200
ab42202a34 Downgrade to C# 3.0, use shorthand array initialisers where possible. 2015-05-31 08:57:05 +10:00
UnknownShadow200
0cd3f22415 Remove unused draw modes, remove BlendEquation enum. 2015-05-31 08:51:33 +10:00
UnknownShadow200
d7d2418ad4 Show Direct3D api some (untested) love. 2015-05-31 08:48:50 +10:00
UnknownShadow200
72609bf2f1 Remove specifying DrawMode for VBs. (as this was only used by display lists) 2015-05-31 07:21:41 +10:00
UnknownShadow200
0ce5c0e503 Separate VBs from IBs 2015-05-31 07:18:30 +10:00
UnknownShadow200
eba9da7cf6 Remove display list support. (Display list support is still in DLCompatibility branch) 2015-05-31 07:10:24 +10:00
UnknownShadow200
9e53f84b88 Use DeflateStream instead of GZipStream, add basic GZip header reader. 2015-05-31 06:48:06 +10:00
UnknownShadow200
d49c90c917 Fix non whole blocks and TerrainAtlas2D, fix particles. 2015-05-31 06:33:44 +10:00
UnknownShadow200
ec1eefde43 Only load top half of 2D atlas as terrain texture. 2015-05-27 19:48:44 +10:00
UnknownShadow200
f191885115 Simplify updating atlases, move TextureAtlas1D to TerrainAtlas1D. 2015-05-27 19:47:09 +10:00
UnknownShadow200
f5a55c50b8 Use UnsafeString in BlockSelectScreen, fix not disposing Bitmap in TerrainAtlas2D.LoadTextureElement. 2015-05-27 18:36:23 +10:00
UnknownShadow200
d65ba5b226 Cleanup in TextureAtlas2D, rename TextureAtlas2D to TerrainAtlas2D, move Vector3I to own file. 2015-05-27 17:57:39 +10:00
UnknownShadow200
e2289b1a92 Simplification in TextureAtlas2D, added overload to IGraphicsApi.LoadTexture that accepts IntPtr and specified size. 2015-05-27 16:34:21 +10:00
UnknownShadow200
0587600078 Cleanup PickingRenderer. 2015-05-27 06:20:10 +10:00
UnknownShadow200
89fe93f080 Remove pointless blockcopy in networkprocessor. 2015-05-27 06:18:12 +10:00
UnknownShadow200
22899a2613 Remove unused AlphaBlendEq. 2015-05-23 12:52:58 +10:00
UnknownShadow200
8339f86b04 Can press Alt + F4 to close the window, prevent changing key mappings to function keys. 2015-05-23 09:25:17 +10:00
UnknownShadow200
6a41700cc5 Consistent newlines. 2015-05-23 07:38:40 +10:00
UnknownShadow200
f309919ea5 Implement more of the missing functions in DirectXApi. 2015-05-23 07:23:42 +10:00
UnknownShadow200
c2b6ee83b1 Remove support for non power of two textures. 2015-05-23 06:16:17 +10:00
UnknownShadow200
f2563ffde5 Move TextureAtlas2D.Into1DAtlases into TextureAtlas1D, general cleanup of TextureAtlas1D. 2015-05-23 06:11:37 +10:00
UnknownShadow200
660daa26d0 Use power of two textures for 2D operations, replace code to draw bounds of rectangles with single method in Utils2D. 2015-05-22 19:38:07 +10:00
UnknownShadow200
b0b7285953 Remove DrawVertices overloads in IGraphicsApi that doesn't specify a count, remove unused Vector3 DrawVertices method. 2015-05-22 17:49:28 +10:00
UnknownShadow200
aa115515fc Version 0.6. 2015-05-21 18:33:35 +10:00
UnknownShadow200
9e341c875e Don't recreate block textures unless necessary, combine MakeEdgeTexture and MakeSideTexture into MakeTexture. 2015-05-21 18:23:07 +10:00
UnknownShadow200
df4c6b4b32 Fix issues with UnsafeString on Windows XP and below. (Unfortunately, I couldn't work around this without having to allocate strings.) 2015-05-21 16:22:48 +10:00
UnknownShadow200
59a98083b1 Implement ExtPlayerList 2 fully. 2015-05-19 06:42:00 +10:00
UnknownShadow200
eb3211101d Mobs can use custom textures. 2015-05-19 06:30:52 +10:00
UnknownShadow200
a223762e02 Fix bug with right clicking attempting to place blocks outside boundaries of the map. 2015-05-18 18:56:04 +10:00
UnknownShadow200
6970982ee8 Finish EnvWeatherType. 2015-05-17 19:59:11 +10:00
UnknownShadow200
e85d52ec22 Add rain and snow to required resources list, add progress status to ResourceFetcher. 2015-05-17 19:46:09 +10:00
UnknownShadow200
37137d6531 Fix backspace. 2015-05-17 16:06:23 +10:00
UnknownShadow200
9f994a6150 Don't use texture matrix. (still to do: snow, turning off weather). 2015-05-17 09:15:03 +10:00
UnknownShadow200
ef14df9651 Offset rain depending on position, fix rain texture. 2015-05-17 09:09:52 +10:00
UnknownShadow200
e667b4f9fb More work on WeatherRenderer. 2015-05-17 08:48:55 +10:00
UnknownShadow200
b27302a47f More work on weather. 2015-05-17 07:51:47 +10:00
UnknownShadow200
cfbcbc56a3 Start work on WeatherRenderer. 2015-05-17 06:47:43 +10:00
UnknownShadow200
345df89a45 Add method to check if texture IDs and vertex buffer IDs are valid. 2015-05-16 07:36:55 +10:00