60 Commits

Author SHA1 Message Date
UnknownShadow200
fb18b2fe6f Remove all static methods from C headers 2017-09-12 10:30:15 +10:00
UnknownShadow200
09e584b61c Minorly optimise BlockModel, fix name tag above sprite block models being too high 2017-09-11 17:49:22 +10:00
UnknownShadow200
f986d5254e get rid of implicit matrix operator usage to avoid a copy 2017-09-07 10:18:54 +10:00
UnknownShadow200
c23ba90c1f Make BlockInfo class static and break all plugins in the process. 2017-08-14 09:33:21 +10:00
UnknownShadow200
bf846b80c0 Remove DrawMode/DrawVb/DrawIndexedVb, just provide DrawVb_Lines and DrawVb_IndexedTris 2017-07-03 23:56:05 +10:00
UnknownShadow200
8e425763c7 Port IsometricBlockDrawer to C. 2017-06-07 10:53:26 +10:00
UnknownShadow200
1ad5b6b259 Make matrix operations consistent 2017-06-05 13:25:07 +10:00
UnknownShadow200
19e2ff846c better var names 2017-04-09 12:35:31 +10:00
UnknownShadow200
0a4eece26c Fix blocks on map border/horizon not being tinted. (Thanks joshim4) 2017-02-24 20:29:16 +11:00
UnknownShadow200
005d0cebe2 For the 0-1 people who bother, make 12 bit block ids as easy as a compile time switch. 2017-02-19 22:29:07 +11:00
Goodlyay
c117af4c33 Fix angle of blocks in inventory 2017-02-16 04:30:05 -08:00
UnknownShadow200
c92ebcac6c Use BlockID typedef instead of hardcoding byte everywhere.
In the 0.00001% chance someone changes blockid to be 16 bits
2017-02-16 16:31:17 +11:00
UnknownShadow200
a2aa233759 fix tinting 2017-02-07 16:33:39 +11:00
UnknownShadow200
f680bd0706 Optimise inventory rendering 2017-02-07 16:18:56 +11:00
UnknownShadow200
69dd8af17c reduce code duplication 2017-02-07 15:19:06 +11:00
UnknownShadow200
98d435b110 fix licensing 2017-01-20 09:12:04 +11:00
UnknownShadow200
eddf8229f0 Optimise block tinting 2016-12-21 14:27:24 +11:00
Goodlyay
a4cb1e80be Core: add block tinting
Uses the fog colour components of the block to tint it if the name ends
with "#".
2016-12-20 19:05:29 -08:00
UnknownShadow200
1aef52fab2 Use standard indentation for everything. 2016-11-27 14:47:09 +11:00
UnknownShadow200
00f28e2039 Style: Start simplifying BlockInfo 2016-10-29 13:15:00 +11:00
UnknownShadow200
f0047be63c Style: Remove CommandReader class, move stuff from ClassicalSharp.TexturePack to ClassicalSharp.Textures 2016-10-17 17:15:24 +11:00
UnknownShadow200
273b3b32e2 Gfx: Remove unnecessary parameter from UpdateDynamicIndexedVb 2016-10-10 09:13:32 +11:00
UnknownShadow200
8c292d92e3 Use packed ints instead of 4 byte fields in vertex structs. 2016-07-10 11:23:20 +10:00
UnknownShadow200
b5d4093873 Fix sprites being mirrored incorrectly in inventory. (Thanks 123DMWM) 2016-07-09 23:35:03 +10:00
UnknownShadow200
d6266ed61e Normalise line endings to end this madness. (Thanks Jjp137) 2016-06-11 17:56:37 +10:00
UnknownShadow200
2d7cf38a52 Final pass of optimising isometric block drawing. 2016-05-13 19:06:49 +10:00
UnknownShadow200
ce4d050c73 Second pass of optimising isometric block drawing. 2016-05-13 18:26:49 +10:00
UnknownShadow200
e9ea36a03c First pass of optimising isometric block drawing. 2016-05-13 18:06:20 +10:00
UnknownShadow200
4d8b0fc3d8 Use bitflags instead of booleans for hidden so it can better fit in cache. 2016-05-06 13:43:25 +10:00
UnknownShadow200
3f6b25dccb Round 2 of inlining performance hotspots. 2016-04-26 23:45:25 +10:00
UnknownShadow200
b1f69e7c25 Optimise isometric block drawing. 2016-04-26 11:59:26 +10:00
UnknownShadow200
ba3418908d Fix top face in IsometricBlockRenderer being oriented incorrectly. (Thanks goodlyay) 2016-04-10 15:21:44 +10:00
UnknownShadow200
3865bc6888 Rename vertices structs to a more concise one, also fix issue with progress bar very very rarely overflowing when the server overflows on computing the progress value, by instead computing it client-side. (Thanks 123DontMessWitMe) 2016-03-29 20:45:52 +11:00
UnknownShadow200
7a2e5d6049 Organise most things into namespaces. 2016-03-27 09:33:51 +11:00
UnknownShadow200
a78205c45a Add copyright notices to every source file. 2016-03-26 13:51:42 +11:00
UnknownShadow200
1af8e2488a Fix adding/removing custom colours causing chat to be moved up, also fix alt text widget being drawn over top of text input widget. 2016-01-27 23:40:09 +11:00
UnknownShadow200
cccea6f233 Fix sprites in the inventory/hotbar not rendering the four parts in the correct Z order, also make sprites a little bit bigger. 2016-01-27 23:26:55 +11:00
UnknownShadow200
599944d943 Fix isometric blocks/block models sampling from wrong vertical location and fix order of rendering of elements in the hotbar. (Thanks 123DontMessWitMe) 2016-01-17 16:40:14 +11:00
UnknownShadow200
c11f1d2ebd Add separate option for hotbar and inventory scale (Thanks FabTheZen), also fix blocks in hotbar not properly scaling on large resolutions. 2016-01-13 23:32:26 +11:00
UnknownShadow200
363a847152 Use animations in inventory and hotbar. (Thanks FabTheZen) 2016-01-13 23:12:03 +11:00
UnknownShadow200
169a5538f6 Fix some isometric blocks top faces being drawn with the wrong texture coords. (Thanks 123DontMessWitMe) 2016-01-08 10:35:14 +11:00
UnknownShadow200
619a713ae7 Make the updates screen nicer to use. 2016-01-02 21:50:28 +11:00
UnknownShadow200
06b0562695 Touchup launcher a bit and make default height 40 pixels smaller, also fix clicking 'use sounds' multiple times causing the client to crash. 2015-12-31 15:26:04 +11:00
UnknownShadow200
0102471e91 Implement gas block draw type in BlockDefinitions, also allow press function keys in text input widget (Thanks FabTheZen). 2015-12-30 21:42:20 +11:00
UnknownShadow200
09757d6316 Fix isometric blocks not respecting fullbright (Thanks Empy), fix 'stepping/walking' physics not working with custom stairs. 2015-12-28 22:12:23 +11:00
UnknownShadow200
ac1934b37f Fix isometric block textures being back to front, fix isometric block textures not using minBB/maxBB for u coordinates in x/z face quads. 2015-12-27 21:22:11 +11:00
UnknownShadow200
66e0bc887c Isometric block rendering now works with non 0 minX/Y/Z and non 1 maxX/Z. 2015-12-23 21:58:05 +11:00
UnknownShadow200
6fb7e099f9 Remove Height[] array and use MaxBB[].Y in its place, also fix sprites being drawn with wrong height in block in hand. 2015-12-23 17:43:45 +11:00
UnknownShadow200
4ccbc900a1 Option to hide block in hand, make back to X smaller and move quit game to right of it, use waithandle instead of Thread.sleep so music thread doesn't keep client alive. 2015-11-30 08:08:32 +11:00
UnknownShadow200
b38a61cea6 Fix client crashing if default texture pack didn't have default.png, block hotbar now shows when block select screen is enabled. Block hotbar and select screen now scale natively with resolution. 2015-11-09 19:53:24 +11:00