Commit Graph

9886 Commits

Author SHA1 Message Date
Lasse Öörni
311b66f859 Invert also quad projection when camera is inverted.
Fixed GLSL GetQuadTexCoordNoFlip() function.
2013-09-14 22:49:06 +00:00
Lasse Öörni
0f5456d35e Avoid unnecessary rendertarget blitting in OpenGL light prepass mode.
Fixed too dark ambient lighting and environment cube mapping in OpenGL deferred mode.
Added new shader function GetQuadTexCoordNoFlip() which can be used to sample regular texture resources in postprocessing quad passes and documented it.
Removed Camera::SetFlipVertical() from the Lua script API as it should only be called internally to handle OpenGL / Direct3D9 differences.
2013-09-14 22:20:39 +00:00
Lasse Öörni
393d66881c Do not initialize the quick menu twice. 2013-09-14 17:23:13 +00:00
Wei Tjong Yao
a5998c8c89 Cleaned up recent CMake module changes to use variable instead of string in regex matches. 2013-09-14 15:54:58 +00:00
Lasse Öörni
f3e44a22b1 Fix creating UI elements from the quick menu. 2013-09-14 13:19:47 +00:00
Lasse Öörni
f0a965c912 Added quick menu feature to editor contributed by Chris Friesen. Open with Ctrl+Space. 2013-09-14 10:54:06 +00:00
Wei Tjong Yao
81af6af406 Fixed the Lua compilation error in GCC build by making sure the right Precompiled.h include file is found by adjusting the GCC include search path. 2013-09-14 09:56:11 +00:00
Aster Jian
9098cd92c4 Update LuaScriptAPI document. 2013-09-13 16:33:04 +00:00
Aster Jian
ed04210c55 Update Lua code. 2013-09-13 14:43:15 +00:00
Aster Jian
8710d28a79 Convert Vector<String> to Lua table, remove const char* type. 2013-09-13 14:41:58 +00:00
Lasse Öörni
8489eca710 Do not needlessly check for Graphics subsystem in headless mode. 2013-09-13 13:11:55 +00:00
Aster Jian
16360d506f Add default String parameter to tolua_tourho3dstring and tolua_tofieldurho3dstring. 2013-09-13 10:27:02 +00:00
Aster Jian
de816ebeaa Remove Urho3D::String binding in Lua. 2013-09-13 05:44:28 +00:00
Aster Jian
26fb71536a Add Urho3D::String support in tolua++. 2013-09-13 05:41:55 +00:00
Wei Tjong Yao
bb2205e690 Avoid hardcoding Lua API pkg names and at the same time improve build performance by having more granular dependency list. 2013-09-13 04:11:26 +00:00
Lasse Öörni
f07f883ee9 Set proper sound channel type for NinjaSnowWar music. 2013-09-12 18:06:30 +00:00
Lasse Öörni
e9535c8336 Fix Lua SendEvent with parameters. 2013-09-12 17:59:32 +00:00
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