Commit graph

16 commits

Author SHA1 Message Date
Eidolon
6f580606cd hwr2: Remove pass infrastructure
It's not worth trying to force the engine to conform to deferred
drawing.
2023-09-01 15:30:04 -05:00
Eidolon
3ec7163a34 rhi: remove TransferContexts 2023-07-09 13:54:07 -05:00
Eidolon
e40b3ac1e3 hwr2: Track colormaps and lighttables tex globally 2023-06-01 05:11:48 -05:00
Eidolon
b8dabe82cf Revert "hwr2: Track colormaps and lighttables tex globally"
This reverts commit aa48237928.
2023-05-23 09:05:23 -05:00
Eidolon
aa48237928 hwr2: Track colormaps and lighttables tex globally
This will allow hardware to reuse the same colormap textures objects as
twodee.
2023-05-19 18:54:19 -05:00
Eidolon
8d390c58d4 hwr2: Extract BlendMode enum from twodee
This enum is usable across multiple parts of hwr2 so it would be easier
to just keep it separate.
2023-05-19 18:54:19 -05:00
Eidolon
3ad3dd5cd9 rhi: Extract patch atlas cache to own class 2023-04-15 21:04:07 -05:00
Eidolon
8cc6e9a4f0 rhi: Add texture wrap modes
They cannot be changed after creation, for simplicity.
2023-03-24 16:43:41 -05:00
Eidolon
70c375f9db rhi: Remove color attachment pixel formats
Color attachment must always be an RGBA texture
2023-03-24 16:11:11 -05:00
Eidolon
c31df8a0bb rhi: Repurpose Renderbuffer for depth-stencil 2023-03-24 16:06:30 -05:00
Eidolon
ba5ee56b8e Rename RHI update_buffer_contents to update_buffer
Consistency with update_texture
2023-03-23 13:30:17 -05:00
Eidolon
e088577924 Use GLM in RHI for uniforms and color parameters 2023-03-23 13:19:48 -05:00
James R
ad5b70439c Twodee: flip trimmed offsets too
Fixes flipped patches being offset by the empty space on
the left side. Now it uses the empty space on the right,
when flipped.
2023-03-15 00:31:29 -07:00
Eidolon
df5f24e5c7 hwr2: separate Modulate and Alpha blending in 2d 2023-03-01 18:54:31 -06:00
Eidolon
0a9e9bbbae hwr2: use palette manager in twodee 2023-02-26 18:47:42 -06:00
Eidolon
d855d96a10 hwr2: Add hardware 2D rendering 2023-02-26 18:47:42 -06:00