Paul Chote
8c0f4fde81
Fix newlines in C# files.
2018-07-01 11:08:32 +02:00
Paul Chote
8461a82577
Remove requirement for depth sprites to share color sheet.
2018-06-04 23:33:57 +02:00
Paul Chote
bf4b91741a
Ignore unused frames when loading Sequences into Sheets.
2018-05-02 09:59:03 +02:00
Paul Chote
d9fd0f272c
Add support on-demand sprite frame loading.
...
Passing the getUsedFrames argument will cause frames to be buffered
locally (and not added to the SheetBuilder) until they are explicitly
requested. This allows unused frames in sprite files to be skipped
instead of wasting space in GPU memory.
2018-05-02 09:59:03 +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
983abee1ed
Support tracking multiple sprites in SpriteCache.
2016-07-13 21:03:31 +01:00
abcdefg30
ad3b41dfa3
Fix the --png command trying to use OpenRA's virtual file system
2016-03-14 15:24:33 +01:00
Taryn Hill
19a6a7bbcf
Add xmldoc to some ISpriteFrame members
2016-03-12 13:46:38 -06: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
Paul Chote
b347fade71
Use IReadOnlyFileSystem in artwork loaders.
2016-02-18 18:12:31 +00:00
Pavel Penev
8d56de80ca
Add ISoundLoader
...
The interface is to be implemented by all sound loaders, just like ISpriteLoader. All loading goes through the interface. This would allow mods to create their own sound loaders outside the engine.
Also add a SoundFormats property to mod.yaml, where mods can define what sound loaders they will need.
This requires Game.Sound to be initialized after the ModData is loaded.
2015-12-20 19:17:48 +02:00
Pavel Penev
1b88d24cfa
Unstatic GlobalFileSystem and rename it to FileSystem
...
Add a ModFiles field on ModData and move all access to the file system to go through that.
2015-12-14 03:42:22 +02:00
Paul Chote
b2458fc614
Remove GlobalFilesystem.OpenWithExts. Closes #5272 .
2015-03-28 12:38:48 +00:00
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
Hellhake
5a97a4b63b
Fix StyleCop warnings in OpenRA.Game
2015-01-02 12:11:01 +01:00
Paul Chote
202247cf6a
Include no-extension workaround for FrameCache too.
2014-12-23 22:09:22 +13:00
RoosterDragon
d671e1de01
Create a separate FrameCache for caching sprite frames.
...
We split the caching SpriteLoader into a SpriteCache and FrameCache. SpriteLoader instead becomes a holder for static loading methods.
Only a few classes loaded sprite frames, and they all use it with a transient cache. By moving this method into a new class, we can lose the now redundant frame cache, saving on memory significantly since the frame data array can be reclaimed by the GC. This saves ~58 MiB on frames and ~4 MiB on the caching dictionary in simple tests.
2014-10-14 22:06:11 +01:00
Paul Chote
6a72e87028
Remove the remaining legacy sprite plumbing.
2014-10-07 09:55:50 +13:00
Paul Chote
9cf8328979
Add plumbing for mod-defined sprite loaders.
2014-10-07 09:55:49 +13:00
Paul Chote
7207841f8b
Use the existing SpriteLoader cache for tilesets.
2014-10-07 09:55:48 +13:00
ScottNZ
dbffce81a6
Remove unused usings
2014-06-15 22:16:40 +12:00
RoosterDragon
a598a01108
Fixed IDisposable implementation and usage.
...
- Implement IDisposable interface correctly, with sealed classes where possible for simplicity.
- Add using statement around undisposed local variables.
2014-06-10 11:23:55 +01:00
Pavlos Touboulidis
63ec6d60e7
Refactoring to remove static Rules & SequenceProvider
2014-05-17 14:32:03 +03:00
Paul Chote
4935266945
Merge FileFormats dll into Game and reorganise namespaces.
2014-04-17 01:20:47 +12:00
Paul Chote
f92ce8bf51
Define a consistent interface for sprite loading. Fixes #4176 .
2013-12-01 09:47:49 +13:00
Paul Chote
20a6c75ba4
Rewrite ShpTSReader. Closes #3746 .
2013-12-01 09:47:49 +13:00
Paul Chote
5b947090f4
Use the normal extension checking rules for .r8.
2013-12-01 09:47:49 +13:00
Paul Chote
f153516151
Introduce proper support for non-shp sprites in cursors and ShpImageWidget.
2013-12-01 09:47:48 +13:00
ScottNZ
00ec1ca87a
Remove unused usings
2013-11-12 19:39:33 +13:00
Paul Chote
acbd692de8
Add native support for the d2k R8 format.
2013-07-16 23:16:09 +12:00
Paul Chote
0e1c12131a
Generalize SheetBuilder overflow behavior.
2013-06-15 19:16:07 +12:00
Matthias Mailänder
881fcf1191
added in-game SHP viewer with frame slider
2013-05-15 18:13:33 +02:00
Paul Chote
891158ca44
Allow SheetBuilder to throw an exception on sheet overflow.
...
This removes unnecessary checks from TerrainRenderer
and will be used in the voxel renderer.
2013-05-15 20:18:41 +12:00
Matthias Mailänder
2d685ab07d
added SHP(TS) support by @katzsmile
2013-05-05 19:19:16 +02:00
Chris Forbes
f8122047b6
ShpLoader is no longer IEnumerable
2011-12-27 18:10:52 +13: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
094907c1a9
Update copyright header. Normalize line endings to LF.
2011-02-13 10:38:57 +13:00
Paul Chote
6776d6f906
Load the main menu without loading mixes or creating a shellmap world. A giant hack.
2011-01-27 20:50:00 +13:00
Chris Forbes
848622054d
unstatic SpriteLoader
2011-01-26 21:09:07 +13:00
Chris Forbes
1d7f57941e
rename SpriteSheetBuilder to SpriteLoader; it's dumb otherwise
2011-01-26 21:07:54 +13:00