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
Chris Forbes
55036cd58c
fix trailing whitespace everywhere
2011-09-26 08:40:39 +13:00
Chris Forbes
2ec88a6f64
remove duplicated NextPowerOf2 definition
2011-07-14 20:29:11 +12:00
Chris Forbes
4d6b2c7954
IBOless rendering with quads; considerably reduces renderer complexity
2011-05-18 20:42:10 +12:00
Paul Chote
b0425aff3b
Renormalize line endings and fix copyright headers again.
2011-04-07 21:15:42 +12:00
Chris Forbes
16cb275a5f
fix rendering of very large maps
2011-03-08 19:24:15 +13:00
Chris Forbes
feecc70a4f
remove another bit of insignificant but silly allocation
2011-03-05 18:49:50 +13:00
Paul Chote
094907c1a9
Update copyright header. Normalize line endings to LF.
2011-02-13 10:38:57 +13:00
Chris Forbes
0a041fe425
use byte[] backing for Sheet. bitmap backing is still available for Chrome RGBA hack.
2010-08-19 19:22:03 +12:00
Paul Chote
db9cfb9ddd
More refactoring and a TODO on custom terrain perf
2010-07-22 01:13:03 +12:00
Chris Forbes
d5f12dd8ee
trim down license spam in all files
2010-07-18 16:48:21 +12:00
Paul Chote
a35d6207a9
Scriptable chronosphere + desaturate effect
2010-05-26 21:07:13 +12:00
alzeih
7881deca30
Everything is now OpenRA, not OpenRa
2010-02-27 21:10:22 +13:00