Paul Chote
ebf2ce32c0
Make sure braces for multi-line statements are on their own lines.
2019-06-08 19:26:53 +02:00
Paul Chote
ab4a7e3558
Replace System.Drawing primitives with our own.
2019-03-04 18:26:42 +00:00
Paul Chote
94f7f6fd2e
Remove obsolete code.
2019-02-24 14:02:19 +01: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
84e965835b
Remove System.Bitmap from badge and mod icons.
2019-01-08 21:20:06 +00:00
Paul Chote
4f10d4a302
Remove System.Bitmap from UI artwork loading.
2019-01-08 21:20:06 +00:00
Paul Chote
8c0f4fde81
Fix newlines in C# files.
2018-07-01 11:08:32 +02:00
Paul Chote
bfcbe8c004
Improve batching by binding up to 8 simultaneous textures.
2018-06-04 23:33:57 +02:00
Paul Chote
131496ebf8
Merge RGBA sprite rendering into SpriteRenderer.
...
Renderer.RgbaSpriteRenderer is kept as a thin
wrapper to maintain compatibility with consumer
code.
2018-06-04 23:33:57 +02:00
Paul Chote
c307b3e291
Encode channel attributes in a more sensible way.
2018-06-04 23:33:57 +02:00
RoosterDragon
e17ede34ef
Add Int32Matrix4x4 struct.
...
This allows matrices to be represented as a value type, and additionally allows avoiding array allocations when calculating rotations.
2018-03-21 12:07:53 +01: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
37c5e9e0b0
Fix incorrect secondary data channel in FastCreateQuad.
2016-07-13 21:03:30 +01:00
Paul Chote
5d0990f1c6
Removing remaining SheetType.DualIndexed plumbing.
2016-04-15 16:53:37 -04:00
Paul Chote
3a37551812
Remove SheetType.DualIndexed from terrain rendering.
2016-04-15 16:53:37 -04:00
Paul Chote
7c67b10d28
Add a secondary texture coordinate to Vertex.
2016-04-15 16:46:47 -04:00
Paul Chote
c00ef40151
Add float3 support to TerrainSpriteLayer.
2016-04-10 09:41:01 -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
RoosterDragon
8e89a6a696
Simplify names, remove unused usings, remove redundant casts.
2016-01-17 21:35:36 +00:00
Paul Chote
a754a96b77
Convert SpriteRenderer to TriangleList.
2015-12-26 12:46:54 +00:00
Paul Chote
9a5483fea7
Send TS terrain depth data to the GPU.
2015-10-17 22:34:46 +01:00
RoosterDragon
1a89e91630
Fast case PremultiplyAlpha for opaque colors.
2015-05-29 19:50:33 +01:00
Paul Chote
322285ef66
Update NukePaletteEffect for premultiplied alpha.
2015-05-24 18:32:42 +01:00
Paul Chote
26fd858fc7
Use premultiplied alpha for all textures and blending.
2015-05-23 08:50:28 +01:00
RoosterDragon
9c93001c84
Convert to 32bbp internally in FastCopyIntoSprite.
...
This avoids the need for callers to ensure the pixel format is correct, but ensures that the copying succeeds when the format is different.
2015-04-17 18:50:49 +01:00
RoosterDragon
7883355481
Validate PixelFormat of source bitmap argument in FastCopyIntoSprite.
2015-04-10 19:54:03 +01:00
Paul Chote
3ea70e891d
Merge pull request #7291 from RoosterDragon/dynamic-palette-sizing
...
Implement dynamic hardware palette sizing.
2015-01-13 17:41:15 +13:00
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
RoosterDragon
53f06ba093
Implement dynamic hardware palette sizing.
...
The HardwarePalette will now grow its palette buffer and texture in power-of-2 increments. This avoids it having to allocate memory for a full 256x256 texture up front. In practice the default mods use 22 or 23 palettes so a 32x256 texture is used. This means both the buffer and texture save neatly on memory. Additionally, HardwarePalette.ApplyModifiers sees a nice speedup as it has to transfer a much smaller amount of memory from the buffer to the texture.
To facilitate this change, the MaxPalettes constant is no more. Instead the PaletteReference deals with the calculation of the index and this is passed into the appropriate methods.
2015-01-07 22:41:51 +00:00
RoosterDragon
a6cda967c2
Formatted all files.
...
Automatically formatted all files via VS. This generally corrects indentation, removes trailing whitespace and corrects misplaced tabs or spaces. Manually tweaked a few files where required.
2015-01-06 21:28:50 +00: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
a6f5a21ed4
Made Sheet.Texture into Sheet.GetTexture() since we will want to call it for side-effects.
...
Do the same for Sheet.Data since it has the side effect of generating a buffer.
2014-11-29 12:04:50 +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
ScottNZ
90894aa03e
Use var everywhere
2014-06-15 22:17:34 +12:00
RoosterDragon
4ce8a4a648
Use Marshal.Copy for faster array copying.
...
- Rewrite several methods to use Marshal.Copy to copy data faster and more succinctly compared to doing it manually.
- Rewrite Sheet.AsBitmap(TextureChannel, Palette) with a faster and more self descriptive loop.
2014-06-11 05:02:38 +01:00
Paul Chote
4935266945
Merge FileFormats dll into Game and reorganise namespaces.
2014-04-17 01:20:47 +12:00
Paul Chote
c30b18a9d6
Introduce MapCache and MapPreview for improved UI map previews.
2014-03-16 21:45:59 +13:00
ScottNZ
1394c1dcee
Remove some misc redundancies
2013-11-12 19:39:39 +13:00
Paul Chote
2215f74959
Support rendering sprites into non-rectangular quads.
2013-06-15 19:16:09 +12:00
Paul Chote
4152f61999
Move MakeFloatMatrix to Graphics.Util.
2013-06-15 19:16:08 +12:00
Paul Chote
5f0ab1f62d
Add functions for calculating voxel bounding boxes.
2013-06-15 19:16:08 +12:00
Paul Chote
fb3e776cb9
Add matrix helpers to Graphics.Util.
2013-06-04 20:25:20 +12:00
Paul Chote
4ebe547a05
Allow SheetBuilder to generate 1/2/4 channel sheets.
...
This makes the SpriteFont RBGA sprite hack explicit,
and adds a DualIndexed option to be used by the voxel
renderer.
2013-05-15 20:18:41 +12:00
Chris Forbes
f63cdf37d7
tidy usings in Graphics.Util
2011-12-27 14:53:18 +13:00
Chris Forbes
dd88a1269a
move MakeArray to FileFormats.Exts
2011-12-27 14:52:11 +13:00
Chris Forbes
523183431b
remove some duplication and dead code
2011-12-27 14:48:10 +13:00