Aster@中国上海
|
84fe0946c8
Remove ShortStringHash, Now all of ShortStringHash are replaced by StringHash.
|
11 years ago |
Lasse Öörni
|
f1ec4c8a18
Ensure that manually created textures with an assigned name, but no actual file to back their contents, will recreate the GPU object after device loss and set data lost state.
|
11 years ago |
aster2013
|
460da659ee
Add JSON support in Urho3D.
|
11 years ago |
Lasse Öörni
|
50f775b213
Added FileChanged event sent by ResourceCache for manually responding to changed files in resource directories.
|
11 years ago |
Lasse Öörni
|
973b353a08
Safeguard CollisionShape against empty models to prevent Bullet asserts.
|
11 years ago |
Lasse Öörni
|
263a624fe4
Possibility in ResourceCache to enable returning resources which failed to load. This is used in the editor to overcome eg. failed scripts disappearing from a ScriptInstance's script file slot.
|
11 years ago |
Lasse Öörni
|
47836474e2
Variant pointer refactoring. Variant can now hold a weak pointer to a RefCounted object, which is safer, and is returned using GetPtr(). Engine events have been converted to use that mechanism. GetPtr() is also directly available in AngelScript, as well as assigning a RefCounted or derived class handle to a Variant.
|
12 years ago |
Yao Wei Tjong 姚伟忠
|
4657518ec9
Code cleanup on error handling for ResourceCache.
|
12 years ago |
Yao Wei Tjong 姚伟忠
|
ffe7a7699f
Minor enhancement on getting optional resources and error handling.
|
12 years ago |
Yao Wei Tjong 姚伟忠
|
2e8744dc01
Minor cleanup - remove redundant null check for subsystems pointer.
|
12 years ago |
Yao Wei Tjong 姚伟忠
|
181351ef45
Reserve the vector's initial capacity instead of size.
|
12 years ago |
Yao Wei Tjong 姚伟忠
|
a5246036fb
Add inherited XMLFile resource as dependency. Approximate patched size.
|
12 years ago |
Lasse Öörni
|
6d5ddc23e0
Bump the copyright for 2014.
|
12 years ago |
Lasse Öörni
|
ebd03d08db
When removing a resource dir, remove the FileWatcher with matching path instead of relying on the indexing.
|
12 years ago |
Lasse Öörni
|
2e01ca5e67
Sanitate resource dir similarly when adding and removing it to ensure removing works properly.
|
12 years ago |
Alex Parlett
|
3166f1874d
Changed adding Resource and Package files to be able to specify the location in the Vector for search priority when calling GetFile or GetResource
|
12 years ago |
Lasse Öörni
|
7d83a44d13
Make resource dirs absolute when added to ResourceCache. Sanitate away /./ construct from the runtime program dir and resource dirs. Closes #64
|
12 years ago |
Lasse Öörni
|
0fe2469957
Improved resource unloading. Make it possible to unload all resource types by partial name at once. Editor unloads unnecessary resources after scene load or clear. Add weak ref check to all resource unloading to avoid shader programs being left without their parent shader.
|
12 years ago |
Lasse Öörni
|
ee0e3aa663
Removed the mechanism of binary-serializing resource name hashes instead of resource names. This is to allow correct resource loading from binary scene files on platforms that cannot iterate the resources in the application installation (eg. Android). This also affects networking, downside is increased network payload size when resource attributes are transferred. All binary scenes saved with old Urho versions are also invalidated.
|
12 years ago |
Lasse Öörni
|
372fbed88d
Normalize resource names in SanitateResourceName() if they also contain a registered resource dir name, ie. Data/Scripts/NinjaSnowWar.as becomes Scripts/NinjaSnowWar.as. This fixes script file possibly getting loaded twice.
|
12 years ago |
Lasse Öörni
|
7f64104825
Added -p command line argument, which specifies resource paths to use.
|
12 years ago |
Wei Tjong Yao
|
02512cecf9
In order to move the out-of-source 'build' directory back to Urho3D project root directory, all the source codes sub-directories are now moved down one level to a new directory under project root called 'Source'.
|
12 years ago |