Lasse Öörni
fc0264e4b9
Set clamp address mode for all cube textures by default. In OpenGL mode seams may appear otherwise.
2013-09-12 17:21:06 +00:00
Aster Jian
0f52702801
Fixed Node::LookAtXYZ function default value.
2013-09-12 13:42:47 +00:00
Lasse Öörni
6f78838b5c
Cleaned up Lua event subscription code (do not register C++ handler before Lua function is found successfully.)
...
Moved Lua script object destruction to a function.
Destroy the old Lua script object before creating new.
Unref the object specific event handler functions when destroying Lua script object.
2013-09-12 07:34:16 +00:00
Aster Jian
d830da9801
Add new CreateObject function in LuaScriptInstance, so can create script object from specific Lua file.
2013-09-12 06:05:03 +00:00
Wei Tjong Yao
205fffb4ad
Refactored Sample.h to use class forward for Sprite class. Fixed the alignment of the forward classes to be inlined with convention used by other codes in Urho3D. Added the generated LuaScript wiki into SVN.
2013-09-12 05:44:23 +00:00
Aster Jian
c8df2956a2
Remove ExecuteFile function in Lua.
2013-09-12 05:23:03 +00:00
Aster Jian
d41b4853c0
Fixed some errors in LuaScriptAPI.dox, Add LuaScriptAPI.dox to Urho3D.dox.
2013-09-12 05:21:57 +00:00
Lasse Öörni
a9f13ebdfe
Added LuaScriptInstance subscribe to specific sender's event.
2013-09-11 23:51:03 +00:00
Lasse Öörni
e234e9e8b6
Refactored slider page event parameters to be simpler and fixed unintended scrolling while hovering without mouse button pressed.
...
Change CheckBox to react to click begin (as it was before) so that ListView hierarchy toggling doesn't break.
2013-09-11 12:54:45 +00:00
Aster Jian
0eaadbb3eb
Add Lua Script API document.
2013-09-11 12:54:39 +00:00
Lasse Öörni
e4970dbde6
Fixed corrupted enum list of ListView.
2013-09-11 09:39:12 +00:00
Lasse Öörni
54e0691610
Fixed errors/omissions from the Example Applications doxygen page.
2013-09-10 22:18:30 +00:00
Lasse Öörni
0d478d91ff
Updated documentation regarding Engine::Exit().
2013-09-10 21:37:55 +00:00
Lasse Öörni
c089229104
Added documentation on HTTP requests.
2013-09-10 21:33:43 +00:00
Lasse Öörni
6350f246e6
Register HttpRequest to script.
...
Register Deserializer::Read() & Serializer::Write() to script. They operate on Array<uint8>.
Trim HttpRequest headers and do not add empty headers.
2013-09-10 21:11:39 +00:00
Lasse Öörni
8992e0a881
Applied UI dark style improvement patch.
2013-09-10 19:12:42 +00:00
Aster Jian
c2eec49b7a
Add faster Lua API function in Node class.
2013-09-10 14:35:20 +00:00
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