Vapre
7005da3592
SpriteRenderer, do not copy vertex array data each flush.
2022-11-14 23:33:24 +01:00
Gustas
c041ea7d39
Crash on image/panel not found and add TryGet functions for searching
2022-10-20 19:28:02 +02:00
AspectInteractive2
a1a50d6c98
Added rotation logic to the renderer to enable the use of Interpolated Facings.
2022-07-17 17:03:53 +02:00
abcdefg30
6a31b1f9f3
Update the copyright header year
2022-05-28 00:35:10 -05:00
Eduardo Cáceres
2677e9c013
Use pattern matching
2022-05-18 11:42:36 -05:00
Eduardo Cáceres
7eb64ea6fc
Use read-only autoimplemented property when possible
2022-05-18 11:42:36 -05:00
Eduardo Cáceres
79f321cb44
.Any(), .Count() -> .Count or .Length
2022-05-18 11:42:36 -05:00
Matthias Mailänder
0e7ad43425
Remove unused parameters.
2022-04-01 23:30:26 +02:00
Vapre
83357af14c
WorldRenderer, replace foreach ActorsWithTraits with ApplyToActorsWithTrait. #18798 .
2022-03-13 10:45:01 +01:00
penev92
bf332b6619
Fixed fields missing the readonly modifier
2022-01-22 18:47:06 +00:00
penev92
0d24ccc47a
Fixed unnecessary zero-length array allocations
...
Changed all currently present zero-length array allocations in the codebase to use `Array.Empty` instead.
2022-01-20 22:10:28 +01:00
penev92
860ec642b8
Addressed review comments
...
- Renamed `IVideo.CurrentFrameNumber` to `CurrentFrameIndex`
- Improved logged error message in VideoPlayerWidget
- Renumbered fields in ThreadedGraphicsContext
2022-01-11 18:16:31 +01:00
penev92
6f0509d235
Removed now-unused ITexture.SetData() overload
2022-01-11 18:16:31 +01:00
penev92
c4ab7041b8
Updated VideoPlayerWidget to play new IVideo data
...
Added optional padding to video frames because that's what VideoPlayerWidget expects.
Keeping the option to not use padding for other use-cases like converting frames to PNG.
2022-01-11 18:16:31 +01:00
penev92
ee29d0f9c7
Changed IVideo.CurrentFrameData uint[,] -> byte[]
2022-01-11 18:16:31 +01:00
penev92
0df3b34c52
Did a beautification pass on IVideo and family
...
Removed property backing fields where applicable, introduced C#7 syntax for properties.
Renamed a bunch of interface properties and class private members with more descriptive names.
Did some inconsequential reordering.
2022-01-11 18:16:31 +01:00
RoosterDragon
727084c5fc
Run spell check over solution
2021-12-05 19:23:43 +01:00
penev92
8ba6d13b2f
Removed unused using directives
2021-10-15 13:12:33 +02:00
RoosterDragon
3a7aeb5324
Ensure TargetLineRenderable width and marker size don't get lost.
...
By making the constructor take non-optional parameters, this highlights some calls sites which were forgetting to set these values. These are now fixed.
Set the path debug to have a marker size of 2 for better visibility.
2021-10-02 12:14:54 +01:00
Matthias Mailänder
f08a0b113e
Allow mods to customize application title.
2021-09-19 22:29:50 +02:00
Andre Mohren
2c84c43607
Fixed odd sprite size "frame hopping".
2021-09-02 07:34:13 +02:00
Paul Chote
512dee0ac0
Fix rendering glitches with EnableDepthBuffer disabled.
2021-08-25 17:42:44 +02:00
Paul Chote
dcd3e8d444
Ignore terrain slopes when calculating model shadows.
...
This is less realistic, but better matches the original
game and is the only practical way to reduce visual issues
caused by long shadows being cast over multiple cells.
2021-08-21 13:45:41 +02:00
Paul Chote
27f9f35efb
Fix incorrect world height to screen depth conversion.
2021-08-20 20:17:55 +02:00
Paul Chote
ef1aee5e95
Fix and document the depth buffer calculations.
2021-08-20 20:17:55 +02:00
Paul Chote
962d6496bd
Overhaul depth preview rendering:
...
* Replace Jet color map with grayscale
* Added Shift + \ hotkey to toggle preview
* Added Shift + [, Shift + ] hotkeys to change contrast
* Added Shift + ;, Shift + ' hotkeys to change offset
2021-08-20 20:17:55 +02:00
abcdefg30
b8ba1b36fe
Don't throw an exception when creating a hardware cursor fails
2021-08-14 17:11:34 +01:00
Paul Chote
24f64ae1a8
Fix an edge case where the wrong sheet may be mapped to a depth sprite.
2021-07-25 19:20:19 +02:00
Paul Chote
70892a6661
Change DrawSprite calls to provide scales instead of sizes.
...
This allows us to remove a hacky workaround for calculating
depth offsets when sprites have size.Z == 0.
2021-07-25 00:32:17 +02:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
Andre Mohren
62207313a0
32bpp assets dont need a palette to be defined.
2021-06-25 10:33:54 +02:00
Paul Chote
dacacdf130
Remove global fallback to software cursors on error.
...
We now only fall back for the specific cursors that failed.
2021-05-30 12:01:44 +02:00
Paul Chote
c64cfea179
Allow mods to downscale framebuffer resolution for large world viewports.
2021-05-16 14:22:52 +02:00
Paul Chote
84dff779ac
Work around rendering glitches with non-unity pixel scales.
2021-05-16 14:22:52 +02:00
Paul Chote
0d4b81fe6f
Set world framebuffer size based on minimum zoom.
...
This avoids reallocating buffers each time the player changes zoom level.
2021-05-16 14:22:52 +02:00
Paul Chote
0735345674
Set world framebuffer size based on minimum zoom.
...
This avoids reallocating buffers each time the player changes zoom level.
2021-05-16 14:10:32 +02:00
Paul Chote
bb15bd20c0
Add support for 16 bit floating point textures.
2021-05-16 14:10:32 +02:00
Paul Chote
95f5d162ef
Increase SheetCount back to 8.
...
This was previously decreased to support legacy GPUs
that only supported 8 texture image units and we need
to reserve one of these for the palette texture.
OpenGL 3.X mandates a minimum of 16 (and most most GL2
cards also supported it) so we can now safely increase
this limit.
2021-05-16 14:10:32 +02:00
Paul Chote
560f1a6466
Restrict player color choices to the hue-saturation plane.
2021-05-15 15:29:46 +02:00
Paul Chote
4042d5b179
Preserve original brightness when remapping player colors.
2021-05-15 15:29:46 +02:00
teinarss
10676be377
Replace F extension with string interpolation
2021-05-08 22:20:59 +02:00
abcdefg30
3276373745
Pause rendering when the window is minimized
2021-04-26 21:56:20 +01:00
Matthias Mailänder
5a0bcc01a6
Add a lint check for trait placement on hardcoded actor names.
2021-04-11 20:20:00 +02:00
teinarss
6ba9e64380
Rename modifiablePalettes to mutablePalettes in HardwarePalette
2021-04-03 11:33:31 +02:00
teinarss
8b0a3ea680
Remove our own impl of ReadOnlyList and update usages
2021-04-03 11:33:31 +02:00
teinarss
e12ff2c59d
Remove our own ReadOnlyDictionary and update usages
2021-04-03 11:33:31 +02:00
teinarss
3d381e6e32
Make SpriteFont.Measure take zero allocations
2021-04-03 11:22:45 +02:00
Andre Mohren
3f510b6d93
Make ISpriteLoader aware of the source file name.
2021-03-27 17:36:59 +01:00
teinarss
d60c05eff3
Change to use pattern matching
2021-03-27 17:29:20 +01:00
Castle
12b6bb9448
Allow BlendMode of RgbaColorRenderer to be changed
2021-03-23 17:07:20 +01:00