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
Paul Chote
84dff779ac
Work around rendering glitches with non-unity pixel scales.
2021-05-16 14:22:52 +02:00
teinarss
2c9a36b9a3
Update float3 to readonly and use in modifier for parameters.
2020-12-02 20:37:50 +01:00
Paul Chote
de4a7cecf0
Rework multi-resolution sprite handling:
...
- Sprite.Bounds now refers to rectangles in the source image.
Use this when copying pixels, etc.
- Sprite.Size now refers to sizes in effective pixel coordinates.
Use this when rendering.
- Sheet.DPIScale has been removed.
- "Density" term is introduced to refer to the number of artwork
pixels per effective pixel.
2020-02-26 23:47:15 +01:00
Paul Chote
fd64ad7c89
Support rendering at non-integer display scales:
...
* 2x and 3x DPI artwork can be specified using
Image2x and Image3x in chrome.yaml.
* Images are rendered using bilinear interpolation.
* For non-integer screen scales, prefer downscaling
the next biggest resolution image over upscaling.
2020-01-26 20:22:49 +01:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
Paul Chote
ab4a7e3558
Replace System.Drawing primitives with our own.
2019-03-04 18:26:42 +00:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
Paul Chote
8461a82577
Remove requirement for depth sprites to share color sheet.
2018-06-04 23:33:57 +02:00
Paul Chote
ba38878933
Add TextureChannel.RGBA for RBGA sprites.
2018-06-04 23:33:57 +02:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Paul Chote
3a37551812
Remove SheetType.DualIndexed from terrain rendering.
2016-04-15 16:53:37 -04:00
Paul Chote
2915db67c4
Add depth buffer support to sprites and sequences.
2016-04-15 09:42:29 -04:00
Paul Chote
e71225496b
Clarify GPL version.
2016-02-21 16:30:48 +00:00
Paul Chote
b396965fd9
Update licence header year.
2016-02-21 16:27:31 +00:00
evgeniysergeev
907df4800a
flip or/and mirror sprites with negative width and heigth
2015-10-22 20:53:15 +03:00
Paul Chote
5532ed4fc9
Remove now-redundant blend code.
2015-05-23 08:50:28 +01:00
Matthias Mailänder
63e4d40770
add alpha channel to every possible blend mode
2015-04-26 09:22:19 +02:00
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
Matthias Mailänder
bc3acfeee7
StyleCop clean OpenRA.Game
2015-01-04 15:38:54 +01:00
Hellhake
5a97a4b63b
Fix StyleCop warnings in OpenRA.Game
2015-01-02 12:11:01 +01:00
RoosterDragon
35da7d8a6e
Make the underlying types of TextureChannel and BlendMode enums a byte to save memory.
2014-11-22 18:12:46 +00:00
RoosterDragon
69125989ab
Changed Vertex constructors to pass more parameters as plain floats.
...
This avoids callers having to construct a float2 struct, only to have the Vertex constructor unwrap it into individual components again.
2014-10-10 09:38:14 +01:00
RoosterDragon
bbb3990a0f
Don't store pre-calculated texture coords in Sprite.
...
By storing only the four corners, we can save the object overhead of an array and 4 float elements per sprite. This results in savings of around 5 MiB to store these coordinates.
2014-10-09 20:03:03 +01:00
huwpascoe
7d96a6ac96
Fixed SpriteRenderer offset bug.
2014-08-21 20:08:33 +01:00
Alexander Fast
070d00c678
Fixes year numbers in license text in file headers.
2014-08-21 11:27:52 +02:00
Paul Chote
4935266945
Merge FileFormats dll into Game and reorganise namespaces.
2014-04-17 01:20:47 +12:00
Paul Chote
2303d8064a
Remove Sprite.DrawAt.
2013-09-27 15:41:33 +12:00
Paul Chote
a1dd7cff7b
Support additive blending for D2K explosions.
2013-08-14 17:31:02 +12:00
Paul Chote
7beef85a64
Use PaletteReferences everywhere.
2013-06-15 19:16:08 +12:00
Paul Chote
e5bcb88b0e
Support sprites with an internal offset.
2013-06-15 19:16:08 +12:00
Paul Chote
28d4df355d
Tidy Sprite.
2013-05-15 20:18:41 +12:00
Chris Forbes
bc6af1841b
fix indents everywhere
2011-10-18 15:10:17 +13:00
Chris Forbes
55036cd58c
fix trailing whitespace everywhere
2011-09-26 08:40:39 +13:00
Paul Chote
926b396605
Fix bogus naming of Shaders/Renderers. Split LineRenderer into world and chrome variants.
2011-07-25 22:23:16 +12:00
Paul Chote
094907c1a9
Update copyright header. Normalize line endings to LF.
2011-02-13 10:38:57 +13:00
geckosoft
9489196911
Added a new trait : Scale
2010-11-05 19:48:29 +13:00
Bob
ab1e930ba3
pass worldRenderer around as necessary
2010-10-12 17:24:07 +13:00
Bob
7bf4cb85fa
fix perf in ShroudRenderer
2010-09-24 18:11:08 +12:00
Bob
14e517cab5
Autoflush renderer. Sprite.DrawAt convenience function.
2010-09-24 18:11:03 +12:00
Bob
ede160f1b6
move some more (gameplay related) widgets into mods/
2010-07-30 20:55:03 +12:00
Chris Forbes
d5f12dd8ee
trim down license spam in all files
2010-07-18 16:48:21 +12:00
alzeih
7881deca30
Everything is now OpenRA, not OpenRa
2010-02-27 21:10:22 +13:00