6 Commits
Author SHA1 Message Date
Stephen Thiebaud b1e5333d7c fix: some race conditions and collection issues 2025-12-28 12:56:33 -05:00
Stephen Thiebaud 690bd2b72c feat: deprecate swapto and reimplement basic api surface of managedrendertarget with target pools 2025-12-28 12:56:33 -05:00
Stephen Thiebaud 74bba98039 feat: deprecate managedrendertarget 2025-12-28 12:56:33 -05:00
tomat 67bceff6e7 Initial dotnet format pass.
This commit formats the entire codebase according to `dotnet format` and its limited understanding of our provided `.editorconfig`.
2024-02-28 21:49:50 -08:00
Toastyandtomat 0869a528dc Renderer fixes (#12)
* - Pull #3 requests.
- Safety check for globals in miracle blight renderer to prevent MP crashes.

* - Fixed load crash.
- Fixed miracle blight effect getting very grainy when using the worldposition.
- RealCos -> cos, as cos is now fixed in mojoshader.
- Method rename for consistency.

* Discard changes to Properties/launchSettings.json

* Discard changes to NPCs/CalamityGlobalNPC.cs

* Discard changes to NPCs/CalamityGlobalNPC.cs

* Update CalamityGlobalNPC.cs

* Update RendererManager.cs

* - Rename for consistency.
- Cached renderers are cleared when unloading.

---------

Co-authored-by: tomat <xxlennygamerxx@gmail.com>
2023-12-07 23:56:48 -05:00
Toasty 6bfe9987e3 Improved RenderTarget2D handling. (#1)
* - Added ManagedRenderTarget to better handle RenderTarget2Ds.
- Added a Graphics folder that contains the above.
- Made all existing RenderTarget2Ds use the above instead.
- Removed some old/reduntant loading code for metaballs.
- Moved PrimitiveTrail to the new Graphics folder.

* - Manually unload the event, as afaik TMod will not do this.
2023-11-01 15:47:58 -04:00