131 Commits

Author SHA1 Message Date
UnknownShadow200
6980a08090 Fix Visual Studio project and fix sounds not working properly on Symbian 2025-06-29 17:46:19 +10:00
UnknownShadow200
671507979e PS1/Saturn: Water/Bedrock renders 2025-03-13 18:49:48 +11:00
UnknownShadow200
d76a64abc9 PS1: Minor optimisations 2025-03-10 21:14:39 +11:00
UnknownShadow200
730441c692 Fix sky not rendering 2025-03-07 07:42:44 +11:00
UnknownShadow200
55cd5bc3a0 WIP on redesigning static VB code 2025-02-16 08:29:47 +11:00
UnknownShadow200
6d5a5b78c8 Defer recreating env render VBs until actually needed 2025-02-12 18:22:08 +11:00
rmn20
59a656edb4 Low vram flag removed, advanced lighting enabled 2025-01-17 03:22:56 +03:00
UnknownShadow200
3e2b0ea9d4 DS: Try to avoid loading unnecessary textures into VRAM, slightly optimise matrix loading 2024-08-30 08:14:24 +10:00
UnknownShadow200
018d8f8769 Revert camera changes to fix crashing plugins 2024-06-03 07:45:51 +10:00
Goodlyay
400257da1a Merge branch 'master' into ModernLighting 2024-05-01 21:57:47 -07:00
UnknownShadow200
f108f5e5e6 Even less double usage 2024-04-27 09:57:06 +10:00
UnknownShadow200
7932a5be3c Use floats instead of doubles in more places 2024-04-26 20:42:12 +10:00
UnknownShadow200
047c390e70 Fix respawn point not being set (oops) 2024-04-26 20:07:11 +10:00
UnknownShadow200
029a59a836 Try to avoid using LocalPlayer_Instance so much 2024-04-25 11:10:12 +10:00
UnknownShadow200
cf7b353572 Pass LocalPlayer instance explicitly in more places, rather than relying on an implicit global 2024-04-25 08:39:34 +10:00
UnknownShadow200
1e8bbd0c4b More consistent struct field naming 2024-04-06 09:34:07 +11:00
UnknownShadow200
5fb4887191 PS1: Use a little bit less memory 2024-03-28 17:39:10 +11:00
UnknownShadow200
b7bde85cd4 Gfx_SetColorWrite remembers state across depth only rendering calls 2024-03-22 07:14:36 +11:00
Goodlyay
db0af47418 Merge branch 'master' into ModernLighting 2024-03-10 21:09:43 -07:00
UnknownShadow200
eedea7446d Only load top parts of gui.png and icons.png into GPU textures 2024-01-22 19:55:43 +11:00
UnknownShadow200
f5d8b44b8f Change X/Y/Z to lowercase in structs 2023-12-18 20:33:13 +11:00
UnknownShadow200
776906ebce Move entity name rendering into more general EntityRenderers module 2023-11-03 18:34:05 +11:00
UnknownShadow200
3fa4ef6d44 Unify texture creation checking, and defer dynamic vertex buffer allocation for rain/snow until actually needed 2023-11-03 08:06:16 +11:00
UnknownShadow200
4bb4f89781 Move weather rendering to LockDynamicVB/UnlockDynamicVB too 2023-10-27 18:25:51 +11:00
UnknownShadow200
a4fb5098ef Eliminate usage of Gfx_UpdateDynamicVb_IndexedTris 2023-10-26 21:58:13 +11:00
Goodlyay
054cceed87 Change block Fullbright boolean property to Brightness uint8 property 2023-04-23 05:32:07 -07:00
Goodlyay
d05d4829fa Do not apply anti-mirror offset on rain for better classic accuracy
(Thanks UnknownShadow200)
2023-04-22 03:11:56 -07:00
Goodlyay
1aa975bd6f Tweak snow/rainfall animation
Now the vertical speed at which snow moves is slightly randomized
Also offset the height of one of the planes to avoid unnatural mirrored effect on textures
2023-04-21 19:52:36 -07:00
Goodlyay
9fef44c07d Improve snowfall animation
Add a random offset to the direction that the billboards scroll to better differentiate it from rainfall and add more liveliness to the effect
2023-04-21 18:30:49 -07:00
UnknownShadow200
2e04505df0 Save file dialog on Windows and Linux now also defaults to showing text entered in input save menu input field, also fallback to reading from /etc/machine-id for getting machine ID on Linux for e.g. Flatpaks 2022-11-15 22:30:49 +11:00
UnknownShadow200
9bbea3a4b7 Rename /rendertype normalfast to just fast, and include better help text
normalfast continues to work for backwards compatibility though
2022-11-14 18:52:14 +11:00
UnknownShadow200
2532940c49 Refactor texture pack entry extraction to be more uniform 2022-10-23 12:44:24 +11:00
UnknownShadow200
1787c92ca5 Completely obsolete Gfx_SetTexturing, also fixes chat input background sometimes missing on Direct3D9 backend (Thanks Flux3on)
Issue was introduced in 3e34665941867cb3b7691a3da864923e4366a3b8
2022-09-14 19:08:07 +10:00
UnknownShadow200
64e27dd570 Simplify OpenGL 1 backend to avoid needing to call Gfx_SetTexturing()
Results in glEnable(GL_TEXTURE_2D) and glDisable(GL_TEXTURE_2D) being called much less often:
23 times --> 4 times (not looking at a block)
23 times --> 6 times (looking at a block)
25 times --> 8 times (all chat with input open)
2022-09-03 10:36:28 +10:00
UnknownShadow200
fc0397a7ed Move 'Load file' onto its own line 2022-01-20 18:23:21 +11:00
UnknownShadow200
c32341c9dc Fix menu options appearing wrong for a few frames after being changed (especially chatlines option) 2021-11-05 19:48:38 +11:00
UnknownShadow200
1d94f2c8dc fix last commit 2021-11-05 18:34:15 +11:00
UnknownShadow200
18b09bcfad more minor style tidyup 2021-06-11 22:02:48 +10:00
UnknownShadow200
bf76e58e5d Make cloud rendering a little bit faster 2021-01-20 18:59:35 +11:00
UnknownShadow200
91a1603ef0 Fix last commit not compiling 2020-12-20 12:00:58 +11:00
UnknownShadow200
1597ed76d7 remove a little bit of unused freetype code 2020-12-20 00:08:58 +11:00
UnknownShadow200
bc66ea9325 Always recreate gfx resources instead of just creating, should prevent any leak 2020-12-16 20:28:30 +11:00
UnknownShadow200
88d1d9513a Avoid including String.h in almost all .h files 2020-10-18 12:23:06 +11:00
UnknownShadow200
9501564a72 String --> cc_string 2020-10-18 11:53:28 +11:00
UnknownShadow200
5bf63e79a3 Use single Event_Register_ macro instead of Event_Register_XYZ macros
The Event_Register_XYZ were all just defined to Event_Register_Macro anyway, completely ignoring the type of the arguments given. Therefore it's better to just give a single type unsafe Event_Register_ macro, rather than misleading the user into thinking they were using type safe macros
2020-07-29 17:45:59 +10:00
UnknownShadow200
fd28ce7b27 Add single Event_UnregisterAll method, instead of having code everywhere calling Event_UnregisterXYZ 2020-07-29 11:48:30 +10:00
UnknownShadow200
8bcbad56f6 Consistently use OnInit/OnFree/OnReset everywhere 2020-07-27 18:32:01 +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
9d68364781 Combine GameStructs.h into Game.h
Also breaks all plugin source code, sorry about that
2020-06-13 11:13:41 +10:00
UnknownShadow200
45c9a9236e fix spelling (thanks SpiralP) 2020-06-01 20:37:20 +10:00