Commit graph

93 commits

Author SHA1 Message Date
Eidolon
0dc337c9a5 Fix lots of code for clang-cl compatibility 2025-09-17 17:24:32 -05:00
toaster
756b5600a0 V_DrawFill: Fix with color profile settings
(also the DrawDiag func we don't use anywhere right now)
2025-08-28 13:24:36 +01:00
toaster
e76262ae5b Add Genesis font 2025-08-13 15:39:01 +01:00
Eidolon
e4fc3cc5c2 Fix conditionals on rendermode to allow for more modes 2025-03-12 21:50:37 -05:00
Eidolon
cb7f437e60 Merge public master 2025-02-13 15:48:11 -06:00
Eidolon
a4d304a1f5 Update copyright years to 2025 2025-02-13 15:32:26 -06:00
Eidolon
dae2e8ba17 rhi: Remove GraphicsContext
I've come to the conclusion that some aspects of RHI are overengineered
to suit a future where we would theoretically support Vulkan with
minimal implementation effort. In an effort of architectural astronaut
engineering this has had the consequence of making much of the code
interacting with RHI significantly more complex.

The GraphicsContext was originally an opaque object to wrap and
contextualize operations that would eventually be inserted into a Vulkan
CommandBuffer for dispatch. In practice, for the GL backend, this does
nothing but introduce another pointer to pass around across all RHI
code, when it had already been previously accepted that the idea of
recording multiple GraphicsContexts at the same time was infeasible.

Thus, I'm choosing to excise GraphicsContext entirely. This doesn't do
much except remove passing around the context object. This is one of
many changes I would like to make that would simplify RHI-related code
and defer the complexity to the hypothetical future. Vulkan can come at
a later date, and we can solve the problems of Vulkan then. Right now, I
am actually more concerned for supporting a d3d9 renderer to shore up
that Intel 945GM laptop GPU support gap we currently have.
2024-10-30 09:08:04 -05:00
toaster
af5a65440d Compilation error repair
The compiler is just not smart enough to see that program flow is completely under order, so make sure every variable is initialised
(also change some variable types here and there)
2024-09-28 20:27:50 +01:00
Antonio Martinez
89036e07eb big ol fucking fuck 2024-09-27 03:29:07 -07:00
Antonio Martinez
cad7273ff4 Controller type refactor 2024-09-27 03:28:40 -07:00
Antonio Martinez
bd1b4ac9c3 Fix general flag handling in boxed drawing mode (transparency, slidein) 2024-09-27 03:28:39 -07:00
Antonio Martinez
d531fd744c Remove goofy largebutton y offset testing 2024-09-27 03:28:39 -07:00
Antonio Martinez
5563a06827 Lua ABC -> Lua 123, move dpad to generic to make room for lua gamecontrol translation 2024-09-27 03:28:39 -07:00
Antonio Martinez
7573c7dac9 idk 2024-09-27 03:28:38 -07:00
Antonio Martinez
dfdd46d69f Something something large buttons 2024-09-27 03:28:38 -07:00
Antonio Martinez
9a669ff864 scratchass big buttons 2024-09-27 03:28:38 -07:00
Antonio Martinez
43960d7a23 Animated keyboard, prelim large buttons 2024-09-27 03:28:38 -07:00
Antonio Martinez
9c622c283b Some keycap alignment stuff 2024-09-27 03:28:38 -07:00
Antonio Martinez
9edeaaf0ba Keyboard label fuckapalooza 2024-09-27 03:28:37 -07:00
Antonio Martinez
5c5ab934b3 Touch up keyboard prompt spacing 2024-09-27 03:28:37 -07:00
Antonio Martinez
2546fc8351 No look lua support wheeeeeeeeeee 2024-09-27 03:28:37 -07:00
Antonio Martinez
af4dc813e2 The text spacing vortex consumes all 2024-09-27 03:28:37 -07:00
Antonio Martinez
7019c77b96 Generic input nightmare fuck 2024-09-27 03:28:37 -07:00
Antonio Martinez
31eb1a8f5d Descriptive input: visually box control legends, better bind search 2024-09-27 03:28:37 -07:00
Eidolon
f75564371d Merge public master 2024-05-03 12:55:15 -05:00
bitten2up
cfacbd91be Fix implicit casts of int expecting 4-byte width
This fixes the issue with certain compilers that have int set to
different sizes by either explicitly casting or setting templates
manually
2024-05-03 17:53:53 +00:00
Oni
fb9aeb3466 Merge branch 'trick-panel-controls' into 'master'
Accel press to trick

See merge request KartKrew/Kart!2332
2024-05-02 05:25:37 +00:00
AJ Martinez
c53bd19db0 Add dpad button graphic, trick reminder on failed trick 2024-05-01 01:23:09 -07:00
Eidolon
53caa21b55 Turn off water ripples when reducevfx is on
A number of people have said they have sensory issues caused by the
ripple effects from water and heat. This turns off those effects
when reducevfx is on.

It may be a better idea for this to be a separate option, but it's
a starting point we can build upon later.
2024-04-30 23:13:58 -05:00
toaster
1765e270d1 V_DrawCustomFadeScreen fallback behaviour for Legacy GL 2024-04-11 22:12:21 +01:00
toaster
7f6de407f1 Copyright update: Add Kart Krew (2024) in general for high-traffic inherited sourcefiles 2024-04-02 17:42:38 +01:00
James R
6efa35549b Refactor: separate parts of V_DrawCustomFadeScreen into reusable functions 2024-03-18 02:42:21 -07:00
James R
50339b68f5 Fix offsets for buttons in text drawing
- 1px higher with Menu font
- 2px higher with Console font
- L/R 1 px higher in general
- Fix horizontal spacing
2024-03-11 23:05:04 -07:00
toaster
3ea81d612d Fix anti-offset behaviour for non-FRACUNIT params to V_DrawStringScaled
Specifically fixes netgame chat, which was temporarily unreadable
2024-03-06 17:35:59 +00:00
AJ Martinez
deb5bfdafa Merge branch 'game-would-have-crashed' into 'master'
Remove GAME WOULD HAVE CRASHED console message, remove `RANGECHECK`

See merge request KartKrew/Kart!2002
2024-03-05 05:42:42 +00:00
James R
9a7af6c592 srb2::Draw: add fonts kRollingNum and kRollingNum4P 2024-03-04 01:42:29 -08:00
James R
c6bdf4eae3 Remove RANGECHECK, replace with devmode prints
- All code that would I_Error behind RANGECHECK, simply
  return
- Add debug prints under devmode render
2024-03-03 17:31:33 -08:00
James R
f917fbd199 Ignore patch X offset when drawing fonts
We don't typically use offsets for font graphics anyway.
But I had to add offsets to the console font specifically,
because the console doesn't render text with the normal
drawing functions.
2024-03-02 20:41:28 -08:00
Oni
bc80233f1f Merge branch 'vote-level-names' into 'master'
Vote level names

See merge request KartKrew/Kart!1873
2024-01-28 23:29:44 +00:00
Sally Coolatta
a7df7aa637 Add Medium Font
Monospaced in-between of Console & Thin
2024-01-27 20:38:52 -05:00
James R
510c82ca6d srb2::Draw: inherit global cliprect by default
- Let srb2::Draw be mixed seamlessly with C-style
  V_SetClipRect
2024-01-26 15:12:46 -08:00
James R
ff0a088b04 V_DrawFill (HWR2): add transparency support 2024-01-26 14:30:56 -08:00
James R
3a8a7f3cf5 Add thin timer font 2024-01-22 16:42:30 -08:00
James R
0e4222ae99 String drawing: add support for button character codes
- Bits 5 and 6 define the button state
  - 0xB0 - unpressed (neutral state)
  - 0xA0 - animating between pressed and unpressed
  - 0X90 - pressed down
- Bits 1 - 4 define the button type
  - 0x00 - up
  - 0x01 - down
  - 0x02 - right
  - 0x03 - left
  - 0x07 - R shoulder
  - 0x08 - L shoulder
  - 0x09 - start
  - 0x0A - A
  - 0x0B - B
  - 0x0C - C
  - 0x0D - X
  - 0x0E - Y
  - 0x0F - Z
- Button offsets and dimensions tweaked to my own taste
2024-01-16 05:19:36 -08:00
James R
0d07b83896 String drawing: fix width calculation not accounting for string dance character code 2024-01-16 05:12:12 -08:00
James R
a1e4479f5d String drawing: remove support for transparency character codes
- Frees up 5-7 bit range when 8th bit is set
2024-01-16 05:03:58 -08:00
James R
6d929b6be9 V_GetFontSpecification: bunch menu font 2023-12-29 17:03:54 -08:00
toaster
d0117bc222 Bottom-mounted Dialogue
Makes the drawer more complicated, but the benefit for most circumstances is significant.
In non-splitscreen contexts, pushes V_SLIDEIN|V_SNAPTOBOTTOM HUD elements upwards when the Dialogue is open.
2023-12-01 16:44:11 +00:00
James R.
7b3010c93d Fix many instances of splitscreen view number if there are duplicate displayplayers
- Avoid iterating displayplayers to find view number and
  prefer R_GetViewNumber.
- Iterate over all matching displayplayers if necessary,
  instead of stopping at the first match.
2023-10-03 21:28:33 -07:00
Eidolon
f62cf5fc83 Tracy Instrument I_FinishUpdate, software display 2023-09-18 16:18:38 -05:00