Commit Graph

9869 Commits

Author SHA1 Message Date
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
Wei Tjong Yao
964e0c957f Added a step to fix Eclipse project setting file to replace deprecated GNU gmake Error Parser with newer version (6.0 -> 7.0). The deprecated error parser caused Eclipse CDT not clearing errors from previous builds in the Problems view. 2013-09-03 16:30:06 +00:00
Lasse Öörni
a0e4538f58 Actually removed the old QuickStart documentation text.
Moved the Xcode AngelScript instructions to the Urho3D script host page.
2013-09-03 09:00:03 +00:00
Lasse Öörni
6c570023bd Added HugeObjectCount sample. Todo: add animation, add C++ version. 2013-09-03 07:26:14 +00:00
Lasse Öörni
c9865078ad List tools in alphabetical order in the documentation; fixed outdated information. 2013-09-02 21:11:28 +00:00
Lasse Öörni
76161aaecf Build documentation update. 2013-09-02 21:01:57 +00:00
Lasse Öörni
8da3fa5860 Documentation tweaks. 2013-09-02 20:40:06 +00:00
Lasse Öörni
4cc1858329 Removed the old large script example applications and batch files to start them.
Updated documentation for the new sample applications.
Changed the Lua sprite example to use the common sample initialization.
2013-09-02 18:50:15 +00:00
Lasse Öörni
6229e36a1e Show filename for Lua subsystem error messages where possible. 2013-09-02 18:02:34 +00:00
Lasse Öörni
eef5b89766 Removed the retained message mode from the AngelScript subsystem. Instead, Application class will remember error log messages and display them if ErrorExit() is called without a custom message. This allows showing all error messages from Lua script subsystem equally. 2013-09-02 17:46:23 +00:00
Lasse Öörni
ccdd318eff Use matching else-if construct in AngelScript & Lua Sample code.
Changed ErrorDialogs in the Lua subsystem to error logging (subsystems should not pop up dialogs on their own.)
2013-09-02 14:23:47 +00:00
Wei Tjong Yao
274c06d3a4 Use the else-if construct as the conditions are mutually exclusive. 2013-09-02 13:59:08 +00:00
Lasse Öörni
55ef6dd6c3 CharacterDemo & VehicleDemo in script. 2013-09-02 13:40:10 +00:00
Lasse Öörni
9cbea3b331 Added SoundEffects, Navigation, Chat & SceneReplication samples in script. 2013-09-02 00:05:05 +00:00
Lasse Öörni
b9cc284048 PhysicsStressTest & Ragdolls samples in script. 2013-09-01 17:36:01 +00:00
Lasse Öörni
869046d7cb Added Physics sample in script. 2013-09-01 12:05:11 +00:00
Lasse Öörni
1eae2e13ab Split UIElement::OnClick() to OnClickBegin() & OnClickEnd(), added global UIMouseClickEnd event, cleaned up Button & CheckBox click handling, based on Chris Friesen's work.
Fixed bug in FileSelector which would cause potentially any keypress to select a file.
Added missing icon for View3D UI element.
2013-09-01 10:52:46 +00:00
Lasse Öörni
c8a1bc96d7 Refactor UI to not duplicate code for touch and mouse handling. 2013-08-31 22:40:57 +00:00
Lasse Öörni
68892cae15 Credits fix. 2013-08-31 17:13:38 +00:00
Lasse Öörni
72c6811269 Added RenderToTexture script sample. 2013-08-31 16:38:19 +00:00
Lasse Öörni
30b7905d98 Decals & MultipleViewports samples in script.
Fixed camera rotation in VehicleDemo.
2013-08-31 14:22:36 +00:00
Lasse Öörni
3c6a0f57d7 In the SoundEffects sample, start/stop music when buttons released. 2013-08-31 12:41:37 +00:00
Lasse Öörni
f7ac7eb713 Applied window fixed resizing patch from Sebastian Delatorre. 2013-08-31 10:28:48 +00:00
Lasse Öörni
e777dd9e39 Added Billboards sample in script. 2013-08-30 22:30:06 +00:00
Lasse Öörni
956df0a8f6 Added SkeletalAnimation sample converted to script.
Use ScriptInstance component in AnimatingScene script sample to show the "raw" way of creating script objects.
Clamp function call count to 99999 in profiler text output, as otherwise the printing goes out of line.
2013-08-30 14:41:47 +00:00
Lasse Öörni
7f64104825 Added -p command line argument, which specifies resource paths to use.
Added IsAbsolutePath() function to FileSystem.
Removed unnecessary double error message from ResourceCache.
2013-08-30 11:03:07 +00:00
Aster Jian
5552d06572 Update HelloGUI sample. 2013-08-30 05:43:14 +00:00
Aster Jian
5fe38d3246 Update 01_HelloWorld.lua and Add 02_HelloGUI.lua. 2013-08-30 05:25:15 +00:00
Lasse Öörni
7b4ae12fe0 Ported Sprites, StaticScene & AnimatingScene samples to AngelScript. 2013-08-29 21:34:34 +00:00
Lasse Öörni
680361327a Fixed the skybox material on case-sensitive systems. 2013-08-29 18:48:44 +00:00
Lasse Öörni
10abc4414b Ported HelloGUI sample to script. 2013-08-29 15:53:55 +00:00
Lasse Öörni
5094541394 Ported the first sample to AngelScript. 2013-08-29 14:11:34 +00:00
Wei Tjong Yao
59b5967910 Simplify the build script as ABSOLUTE_PATH_LIBS variable works both ways. 2013-08-29 09:40:35 +00:00
Wei Tjong Yao
643f066179 Use the ABSOLUTE_PATH_LIBS variable instead if the library is found. Just in case the library is found in a path that contains keywords that may be stripped. 2013-08-29 09:11:25 +00:00