5444 Commits

Author SHA1 Message Date
UnknownShadow200
c45442554f
Add note about having to disable mouse integration for virtualbox, improve compiling section in readme
Added documentation for compiling using visual studio command line, clarified mingw/mingw-w64 steps, add larger titles separating compiling instructions by OS
2020-07-12 09:36:31 +10:00
UnknownShadow200
2edbcd411f Always define OpenGL constants for versions > 1.1 instead of relying on GL.h 2020-07-11 11:12:38 +10:00
UnknownShadow200
891ebe1942 Fix CC_BUILD_GLMODERN having messed up fog (thanks picat) 2020-07-10 09:28:50 +10:00
UnknownShadow200
fa3a9ab3d7 Also include Geneva in default fonts list, fixes crashing on macOS panther 2020-07-09 22:52:30 +10:00
UnknownShadow200
04b7cd62ee Use DynamicLib_Get2 instead of dlsym for GetMenuBarEventTarget
using -2 for lib probably breaks powerpc, which I will get around to fixing eventually
2020-07-09 21:35:16 +10:00
UnknownShadow200
35ed41ab81 Fix wrong link in hosting-webclient.md and simplify hosting-flask.md by combining the 3 html template files into 1 2020-07-08 18:27:13 +10:00
UnknownShadow200
eb68cb9026
Merge pull request #688 from SpiralP/master
Custom Models v2
2020-07-07 19:19:15 +10:00
SpiralP
2faeccd5e8 fix head 2020-07-07 01:28:50 -07:00
SpiralP
21b97d2dc4 oop 2020-07-07 00:41:07 -07:00
SpiralP
331651bf34 cleaner code, each anim now chooses which axis to modify 2020-07-07 00:37:35 -07:00
SpiralP
79e3e0beed change protocol for anims: anim type byte now contains which axis to apply to 2020-07-07 00:14:37 -07:00
SpiralP
18ad212279 remove CustomModel_DrawArmPart, added by mistake 2020-07-06 23:43:35 -07:00
UnknownShadow200
08a5cd880f Fix mac/linux builds being broken, oops 2020-07-06 20:22:32 +10:00
UnknownShadow200
3e539a45a5
Merge pull request #689 from UnknownShadow200/AnimsOptimise
Optimise partial texture updates
2020-07-06 20:15:11 +10:00
SpiralP
0a0b2a841b Custom Models v2
now allows 4 modifier numbers per animation, and 4 animations per part
2020-07-05 17:11:36 -07:00
UnknownShadow200
0046c544f4 Bump up max number of arguments for client commands from 10 to 50 2020-07-05 22:00:28 +10:00
UnknownShadow200
e140731504 Make Bitmap use BitmapCol* instead of u8*, make fields lowercase for consistency 2020-07-05 19:57:23 +10:00
UnknownShadow200
7821fa3ab3 Use rowWidth argument for texture animations, avoids a pointless copy for D3D9 backend 2020-07-05 16:39:21 +10:00
UnknownShadow200
54a223f691 Add Gfx_UpdateTexture in preparation for updating textures improvements 2020-07-05 14:15:05 +10:00
UnknownShadow200
5245c317ee Avoid requesting pointer lock then exiting pointer lock when pressing escape to open pause menu
This should further reduce chance where cursor gets stuck down
2020-07-04 16:53:13 +10:00
UnknownShadow200
273473c922 A bug in chrome 83 (crbug.com/1091169) means that if a pointer lock request is made when a pointer lock is already pending, it fails and the cursor is stuck as normal and visible. Not even reloading the tab can save you now. So always defer requests to enable pointer lock to next input event, to reduce chances of this happening. 2020-07-03 21:11:56 +10:00
UnknownShadow200
fab91996d3 Add faster EntryList_Load alternative that doesn't check for duplicate keys. On my machine with 492 fonts, reduces loading fonts list time at startup from ~7 ms to ~1ms. 2020-07-02 21:38:50 +10:00
UnknownShadow200
6a1235f6a9 Use separator argument instead, eliminate need for separate EntryList struct 2020-07-01 23:06:17 +10:00
UnknownShadow200
669dac1738 fix last commit not properly reloading changed options from disc, whoops 2020-07-01 21:23:28 +10:00
UnknownShadow200
278e7c70cd Remove path field from EntryList struct, move to argument for Load/Save 2020-07-01 21:12:14 +10:00
UnknownShadow200
925346278d Only load d3d9.dll when actually needed. This way the launcher will still work even when you're missing Direct3D9. 2020-06-30 23:44:25 +10:00
UnknownShadow200
d805d33d7d For SDL backend, reset graphics context if get a SDL_RENDER_DEVICE_RESET event 2020-06-30 12:15:10 +10:00
UnknownShadow200
259a78b911 remove unused freetype glyph copy code 2020-06-29 17:34:39 +10:00
UnknownShadow200
8c16ce5d29 Fix CC_BUILD_GLMODERN including wrong file 2020-06-28 23:13:23 +10:00
UnknownShadow200
3b6c7ce7f4 Fix fog button in extended touch controls menu not even working at all 2020-06-28 18:48:56 +10:00
UnknownShadow200
c6dc091b2f Fix having to click chat/inventory/fullscreens buttons in extended touch controls twice to get them to work (Thanks SpicedSoup) 2020-06-28 18:17:08 +10:00
UnknownShadow200
2484ff0117 Add support for cross compiling to windows for ARM. No clue if it actually works at all though. 2020-06-28 00:01:27 +10:00
UnknownShadow200
e29e8e1ae9 Make GradientBlend a bit faster because it doesn't need to clamp each pixel. Also cleanup naming in Logger.c 2020-06-27 23:04:55 +10:00
UnknownShadow200
c346d8dc0c Fix custom particles that spawn inside a block appearing for a few frames before disappearing in first PhysicsTick call (Thanks Goodly) 2020-06-27 19:44:48 +10:00
UnknownShadow200
03030afe8a Properly delete entity skins on context lost. So now the game should completely handle context lost/restore on webgl/opengl es backends. 2020-06-27 09:32:10 +10:00
UnknownShadow200
0690c91865 For gfx backends that don't manage textures, properly free atlas 1D textures on context loss, and reload texture pack on on context restoration 2020-06-26 23:25:38 +10:00
UnknownShadow200
dcc6a12946 Make Textures a component too, move some texture specific out of Game.c and into TexturePack.c 2020-06-26 22:37:14 +10:00
UnknownShadow200
664428682c Split up TexturePack into Animations and TexturePack (they end up being about equal lines of code anyways), remove a bit more of unused freetype code 2020-06-26 21:43:02 +10:00
UnknownShadow200
f476eee0c1 WIP on deleting some managed textures when context is lost but managed textures is not actually supported by graphics api 2020-06-26 11:39:54 +10:00
UnknownShadow200
b8794585e4 Fix web client not compiling on really old emscripten versions such as 1.38.21 2020-06-25 23:45:56 +10:00
UnknownShadow200
8fd37cd31e Make custom mipmaps support internal, add bool for whether managed textures are actually supported 2020-06-25 22:53:22 +10:00
UnknownShadow200
7c22112aa3 considering that it is always half way through 2020, probably should update copyright year to 2020 2020-06-25 20:44:38 +10:00
UnknownShadow200
4a329d6302 Fix picking the block on border outside map accidentally extending infinitely (Thanks 123DontMessWitMe)
E.g. if you are standing at -25,1,1 and looking towards -25,1,-1, the block will still be incorrectly highlighted
2020-06-25 20:04:23 +10:00
UnknownShadow200
6332bc55e4 Try 'Slate for OnePlus' font before 'Roboto', fixes launcher text appearing as boxes on some android 10 devices (Thanks Odd0002) 2020-06-25 12:55:15 +10:00
UnknownShadow200
e70362a46e Fix vcxproj defaulting to XP compatible toolset for 64 bit 2020-06-24 22:17:15 +10:00
UnknownShadow200
97260d84a3 If OpenAL initialisation fails, attempt to return OpenAL specific error code before generic 'openal failed' result code 2020-06-24 18:38:51 +10:00
UnknownShadow200
6b4342d2c5 Ignore key character text input on 64 bit mac backend while Cmd is pressed, fixes 'c' and 'v' appearing in chat when copy/pasting. (Thanks Ally) 2020-06-24 11:22:41 +10:00
UnknownShadow200
730eadf47b Cleanup CustomModel packet reading code, pretty sure this doesn't break anything 2020-06-23 17:06:27 +10:00
UnknownShadow200
2f4dae3295 Allow using 32x64 etc skins too. Really intended for custom models though 2020-06-22 17:59:02 +10:00
UnknownShadow200
c08918436d Export SelectionsAdd/Remove per request 2020-06-22 14:38:16 +10:00