Commit graph

13 commits

Author SHA1 Message Date
James R
b31e79b742 Kill last of DJGPP, WATTCP, _WINDOWS (ol' DirectDraw) 2025-02-25 00:42:42 +01:00
toaster
8ed510ca88 Precalculate as much shared minimap/automap data on level load as possible
- `P_InitMinimapInfo`
    - Writes to `p_local.h` extern struct
    - Handles everything previously distributed across multiple K_drawKartMinimapIcon calls (and most of AM_findMinMaxBoundaries)
- Reduces complexity of drawKartMinimapIcon significantly
- Last prerequisite before implementing user-placable minimap boundaries...
2025-02-18 23:48:18 +01:00
toaster
ab58883d85 minigen command: Support -m(ultiplier) parameter
Supports values between 1 and 10, with 1 being the default.
If a multiplier greater than 1 is provided, the filename will take the form "MINIMAP-%d.png", where %d is the multiplier.
2025-02-18 23:48:18 +01:00
toaster
5cd0f14345 Add an explicit error for attempting to generate a preliminary minimap while the automap is open. 2025-02-18 23:48:18 +01:00
toaster
073c3ed4c2 Refactor in preperation for scaling feature
Return a `minigen_t` struct with explicit width and height instead of extending the UINT8 buffer by 2 to provide that information in a very datatype-limited way.
2025-02-18 23:48:18 +01:00
toaster
017e62f4b2 New console command "minigen"
- Generates "MINIMAP.png" in your srb2home
- Uses inherited automap code to render to a temporary buffer
    - Because am_map.c is a mess of filescope static variables right now, this only works when the automap is disabled.
- Currently an equal alternate method to SLADE's map image export, but because we're in control, additional features can be added later...
    - TODO: Off vertically by one pixel on GHZ. Otherwise effectively identical in shape
    - TODO: the colours are rancid, I wonder if they were even updated for the 2.2 palette

Related:
- Use identical linear-time mechanisms for detecting borders of map geometry between automap and minimap
    - Automap was previously using iteration over all vertices
    - Minimap was previously pointlessly writing min/max values twice
2025-02-18 23:48:18 +01:00
GenericHeroGuy
723164152f Salvage the remaining parts of 8f68a21
I'm keeping the screenshot mapname tho :^)
2025-02-17 21:51:31 +01:00
GenericHeroGuy
c93fa43f24 xva: dynamically allocated va 2025-02-17 21:51:31 +01:00
NepDisk
3350b02cc8 Long Map Names Port pt 1. 2025-02-05 17:46:21 -05:00
NepDisk
84320a7e39 windows compile fix #4
I hate windows
2025-01-08 18:03:18 -05:00
NepDisk
6ca8fa92b2 windows compile fix #3
I hate windows
2025-01-08 18:03:18 -05:00
NepDisk
2d3042239d windows compile fix #2 2025-01-08 18:03:18 -05:00
Eidolon
ece92bbbc9 Convert m_misc.c to .cpp 2024-12-29 15:11:39 -05:00
Renamed from src/m_misc.c (Browse further)