Wei Tjong Yao
707668adfa
Removed call to finishActivity() as it is now being called from the native C code when the engine exits.
2013-09-10 13:23:03 +00:00
Lasse Öörni
c814081a7a
Only let the Java activity finish be requested once.
2013-09-10 13:15:29 +00:00
Lasse Öörni
554355ab63
Disable Engine::Exit() on iOS.
...
Disable Engine::SetAutoExit(false) on iOS and Android.
On Android, request activity finish from the Java side instead of directly exiting.
2013-09-10 13:01:07 +00:00
Lasse Öörni
8448215df6
Added proper ws2_32 & pthread dependencies for the Civetweb library.
2013-09-10 12:06:27 +00:00
Lasse Öörni
629d96473c
Added skybox material.
...
Demonstrate use of skybox in the Physics sample.
2013-09-10 09:16:13 +00:00
Lasse Öörni
d72a05fea0
Fixed repeat paging of the slider.
2013-09-10 07:00:00 +00:00
Aster Jian
caf5aa4118
Store Lua function to LUA_REGISTRYINDEX table, make better performance.
2013-09-10 05:13:50 +00:00
Lasse Öörni
e90e99536a
Documentation update.
2013-09-09 22:00:14 +00:00
Lasse Öörni
26fabce801
Added Civetweb library for HTTP requests.
...
Implemented basic HTTP request functionality. Not exposed to script yet.
2013-09-09 21:58:24 +00:00
Lasse Öörni
22651bf27c
Applied UI style and material editor patch from Sebastian Delatorre.
...
Old style is still available as OldStyle.xml & OldUI.png.
2013-09-09 17:11:49 +00:00
Aster Jian
34557813fa
Port SkeletalAnimatioin sample to Lua.
2013-09-09 14:21:57 +00:00
Aster Jian
dfc7647277
Replace table with spaces.
2013-09-09 06:50:17 +00:00
Aster Jian
17bcc5b9e7
Port Animating Scene to lua, test for LuaScriptInstance class.
2013-09-09 06:33:56 +00:00
Aster Jian
f9e2d7c9d1
Add LuaScriptInstance class.
2013-09-09 06:32:58 +00:00
Lasse Öörni
4eadb9f6c8
Cleaned up HashTable code.
2013-09-08 23:13:45 +00:00
Lasse Öörni
1f87bcb9f9
Added HashTable class, which has fixed bucket count and a limited API to optimize for performance.
...
Use HashTable to store Technique's passes to speed up querying for them.
2013-09-08 20:23:51 +00:00
Wei Tjong Yao
1799bc5896
Replaced subversion command line tool detection logic as the previous one did not work for cross-compiling cases for Android and Raspberry-Pi. More deterministic Android shared library loading, dependent shared libraries shall be loaded first before the target application shared library.
2013-09-08 18:15:15 +00:00
Lasse Öörni
4741b3cf08
Added Blender exporter from Reattiva.
2013-09-08 10:51:02 +00:00
Lasse Öörni
a24fdc0e96
Check for existence of SVN before querying revision information; create a dummy svnversion.h if not found.
2013-09-08 10:22:16 +00:00
Lasse Öörni
033dcb4757
Setup resource copying on Xcode only, not Apple/GCC.
2013-09-08 09:47:52 +00:00
Lasse Öörni
c1e03c48db
Combine octree update & reinsertion queuing.
...
Queue only one large work item per thread for threaded Octree & View operations.
Protect the network replication dirty sets with mutex if nodes/components are inserted during the threaded update phase.
2013-09-07 21:08:40 +00:00
Lasse Öörni
a1f6681de3
Eliminated one loop of going through the drawables in View::GetDrawables(). Instead perform the same work in worker threads.
...
Early-exit StaticModel::CalculateLodLevels() if only one geometry per batch.
2013-09-07 16:02:09 +00:00
Lasse Öörni
18e1746e2b
Added forward declaration of Constraint to RigidBody.h.
2013-09-07 08:45:31 +00:00
Lasse Öörni
3a908a54c5
Improved Node, RigidBody & SmoothedTransform header comments in regard to world/parent coordinate spaces.
2013-09-06 16:55:10 +00:00
Lasse Öörni
4ce67126e2
Unversioned the SM2/SM3 shader bytecode destination directories. These are instead created by ShaderCompiler on demand.
2013-09-06 06:51:08 +00:00
Wei Tjong Yao
5b38ca8819
Avoid the assumption that E_CONSOLECOMMAND is only being handled by AngelScript and LuaScript subsystems. Cleaned up the direct dependencies to the script subsystems.
2013-09-06 06:03:15 +00:00
Lasse Öörni
2a9be0b23e
Cleaner fix for console crashes: only collect messages when posted, and print during PostUpdate.
...
Slightly darker error text color.
Updated script API & wiki.
2013-09-05 21:09:03 +00:00
Lasse Öörni
1d19abcda3
Further crash fix for Console and -logdebug mode.
2013-09-05 19:53:30 +00:00
Lasse Öörni
f950220350
Fixed potential crash if applying console style caused new messages to be logged.
...
As UIElement::GetAppliedStyle() returns an empty string for the 'auto' style, also allow to use SetStyle() with empty string to apply the auto style.
2013-09-05 19:26:17 +00:00
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.
...
Fixed renderer raycasts returning wrong distance.
Added caseSensitive parameter to several String functions.
Added option to convert file extension to lowercase in GetExtension() and GetFileNameAndExtension() functions.
Removed unnecessary lowercase conversion of extensions, and complicated string compare logic.
2013-09-05 14:57:45 +00:00
Aster Jian
411f6af885
Add const char* parameter to File's constructor.
2013-09-05 10:24:09 +00:00
Wei Tjong Yao
6bef92973d
Avoid hardcoding of highlighted console text style. Console subscribes to handle log message only when it itself is ready to do so. Removed redundant row container vector in the Console class. Hide the Console's linedit and preventing it to gain focus when there is no AngelScript or LuaScript subsystem to handle the E_CONSOLECOMMAND event. Fixed UIElement to send E_ELEMENTREMOVED event for RemoveChildAtIndex() method. Fixed Sample.lua to handle the ESC key to dismiss the Console when it is visible.
2013-09-05 08:55:05 +00:00
Aster Jian
556d03a14c
Port PhysicsStressTest to Lua.
2013-09-05 06:07:47 +00:00
Aster Jian
27d15eacc5
Port SoundEffect sample to Lua.
2013-09-05 05:43:37 +00:00
Aster Jian
1428423af1
Add GetEventSender function, Add Node::GetChild function.
2013-09-05 05:43:00 +00:00
Aster Jian
d966b8f261
Port StaticScene sample to Lua.
2013-09-05 05:12:31 +00:00
Aster Jian
9f42299eb8
Set error text in red color make it highlight in console.
2013-09-05 02:40:06 +00:00
Lasse Öörni
caf0994b8f
Optimize vector/quaternion Normalize() to a no-op if already at unit length. Changed return value to void.
...
Optimize cache friendliness of Drawable bounding box update by including the local-space bounding box in the base class. Not used in all subclasses.
Optimize Drawable zone handling by making the zone pointers raw pointers instead of weak. Now finding a drawable's zone can be performed in the threaded view preparation phase.
Removed unnecessary collection of whole visible scene bounding box; it is not used anywhere.
2013-09-04 22:08:47 +00:00
Lasse Öörni
e6d0b4d3f3
Normalize ray direction in constructor.
2013-09-04 14:42:32 +00:00
Aster Jian
e803d1c844
Remove unsupported operator != in Color.pkg.
2013-09-04 12:42:09 +00:00
Aster Jian
699b9b29be
Port HugeObjectCount to lua.
2013-09-04 12:41:35 +00:00
Aster Jian
b1a95c1ba8
Use ResourceCache:GetResource("XXX", ...) and Node:CreateComponent("XXX") method.
2013-09-04 11:57:53 +00:00
Aster Jian
90c29aecfb
Add type to some template method, lick Node::CreateComponent etc. Add LoadChunk and LoadAndExecute in LuaFile, Add DrawDebugGeometry in Renderer.
2013-09-04 11:52:10 +00:00
Lasse Öörni
05ba4bf719
Favor the non-parented case for SetWorld...() and for updating the world transform.
...
Explain in documentation that the Scene transform is ignored.
2013-09-04 08:26:47 +00:00
Lasse Öörni
580dd746cf
Removed transform attributes from Scene.
...
When a node has the Scene as its parent, assume the parent transform is identity and skip multiplication with the parent's transform.
2013-09-04 06:40:31 +00:00
Lasse Öörni
7a20f0ad03
Optimize repeated GetWorldBoundingBox() in Drawable::UpdateBatches() override functions.
...
Do not allocate dynamic memory every time when setting a single vertex buffer.
2013-09-03 21:41:52 +00:00
Lasse Öörni
2f9b955f3c
Script API update.
2013-09-03 20:46:58 +00:00
Lasse Öörni
be7636f823
Make the include path absolute in all script examples so that ScriptCompiler can compile them properly.
...
Renamed Octree::Resize() to Octree::SetSize()
When destroying a scene, destroy root-level components first so that child node components are detached from their internal structures and can be destroyed faster in turn.
Use raw pointers instead of weak pointers in Octree update/reinsertion lists for some performance gain.
2013-09-03 20:45:53 +00:00
Lasse Öörni
94a3c80e34
Added C++ version of HugeObjectCount example, and animation to both versions.
...
Added note of event subscription time to the first C++ example.
2013-09-03 19:32:10 +00:00
Lasse Öörni
a71f5fc588
Fixed bad performance of cleaning up a scene with many objects.
2013-09-03 17:49:15 +00:00