Commit Graph

9886 Commits

Author SHA1 Message Date
Lasse Öörni
c8ee94c9aa Fixed GLEW Linux build. 2013-03-20 22:28:16 +00:00
Lasse Öörni
ff564d3360 Switched to GLEW library for OpenGL extensions. 2013-03-20 21:52:53 +00:00
Wei Tjong Yao
cddaa40080 Fixed ScriptInstance.cpp to compile under GCC and LLVM. Better Eclipse build environment setup. General code cleanup. During Editor startup, resets scene when loading requested scene from file specified by the parameter fails. 2013-03-19 09:20:54 +00:00
Lasse Öörni
78be6bf40b Clarified event description. 2013-03-18 23:25:37 +00:00
Lasse Öörni
852047545e Added section on bytecode precompilation to the scripting documentation page.
ScriptInstance sends an event when the script object is created, so that the attribute inspector can be refreshed in case attributes change.
2013-03-18 22:55:41 +00:00
Lasse Öörni
893133e1cd Fixed root CMakeLists.txt 2013-03-18 15:01:38 +00:00
Lasse Öörni
7c1ed151fa Merged the functionality of ScriptCompiler & ScriptAPIDumper. 2013-03-18 14:13:01 +00:00
Lasse Öörni
5cc2b497fd Reset dependency tracking also at ScriptFile destruction. 2013-03-18 08:13:06 +00:00
Lasse Öörni
74c01e7da5 Added compiled AngelScript bytecode support.
Removed unnecessary nullcheck from View.
TODO: merge ScriptCompiler & ScriptAPIDumper.
2013-03-18 08:09:27 +00:00
Wei Tjong Yao
7f4f0fb60d Further refinement. 2013-03-18 05:07:15 +00:00
Wei Tjong Yao
741badfade Fixed the ScriptFile to prevent it from amending the path for include file unnecessarily and added a new error log to help identifying script file that have problematic include. Refactored ListView to support persistent expand/collapse state at each parent item in hierarchy mode, the exposed API is slightly changed. Renamed 'Scene Hierarchy' window to just 'Hierarchy' in the Editor app in preparation for future work, also created new function to differentiate between scene creation and scene reset. 2013-03-18 00:18:48 +00:00
Lasse Öörni
321d9ef74b Fixed GLSL shaders not updating source code on live reload. 2013-03-17 19:28:18 +00:00
Lasse Öörni
cf36528fd4 Return the texture usage accurately for OpenGL textures. 2013-03-17 17:10:11 +00:00
Lasse Öörni
6382d476f8 Dependency tracking for GLSL shaders. Does not actually effect rendering yet, needs investigation.
When reloading a resource, do not remove it from cache if failed.
2013-03-17 12:28:45 +00:00
Lasse Öörni
87aa8baeb4 Fixed variable name in resource reloading loop. 2013-03-17 11:24:50 +00:00
Lasse Öörni
245e678fd6 Refactored resource dependency tracking.
Reset material to defaults when reloading.
2013-03-17 11:21:23 +00:00
Lasse Öörni
8e908c2c60 Added dependency tracking for HLSL shaders, allows live shader reload if HLSL file or any of its includes changes. 2013-03-17 01:16:55 +00:00
Lasse Öörni
20e6dd0da6 Resource dependency tracking for reloading resources. Currently implemented for ScriptFile. 2013-03-16 16:31:21 +00:00
Lasse Öörni
55f249e548 Automatically show compatible script object variables as ScriptInstance attributes and file-serialize them.
Separate script object functions for file and network serialization.
Fixed crashes in some factory instantiated classes when running without all subsystems.
Fixed crash if calling BringToFront() for a detached UI element.
Always create UI root element, even in headless mode.
Do not abort binary format scene loading if loading a component fails, as it is being read from a nested buffer and we can skip to the next.
2013-03-16 12:53:40 +00:00
Wei Tjong Yao
44d663ba41 Added new Print() variant in script API to print a Variant. Fixed StringUtils from erroneously converting numerical string to int/uint using base 8 or base 16 when the string is started with '0' or '0x'. Fixed the same/diff value evaluation for ResourceRefList, VariantVector, and VariantMap. 2013-03-16 08:17:26 +00:00
Lasse Öörni
18ecfc6486 Fixed incorrect exposing of Viewport's rect. 2013-03-15 19:48:48 +00:00
Wei Tjong Yao
990428ca4d Changed Append() methods implementation in String class so they can be chained together in a statement. Added new Join() methods and exposed it to Script API. Refactored Attribute Inspector to take advantage of the new exposed Join() method. 2013-03-15 16:36:23 +00:00
Wei Tjong Yao
9ed0c43919 Exposed math objects construction from an array of float/int and methods to get back the array buffer to the Script API. Enhanced the Attribute Inspector to multi-edit same value at coordinate level for attributes that have multiple coordinates, e.g. Vector3, Color, etc. Different value at coordinate level is non-editable as before. 2013-03-14 19:00:09 +00:00
Wei Tjong Yao
37cd015353 Further improvement. 2013-03-14 11:25:40 +00:00
Lasse Öörni
83c5586b53 Applied patch to Maxscript exporter. 2013-03-14 09:13:55 +00:00
Wei Tjong Yao
5544602c9e Enhance Font class to support saving of font (TTF or bitmap type) as another bitmap font resource in xml format. For bitmap font type, saving yet to another bitmap font is only meaningful when called with the optional parameter turned on to save only used glyphs. Refactored UIBatch class to enable better performance in Text class UI batch generation in relation to multi-pages/textures font. 2013-03-14 08:14:38 +00:00
Lasse Öörni
b296951980 Allow alternate extension .material for material files in the editor. 2013-03-13 12:27:46 +00:00
Lasse Öörni
21dd4b6c70 Updated the Maxscript exporter.
Reduce DOT graph depth in the documentation.
2013-03-13 08:27:08 +00:00
Lasse Öörni
04620cc75f Updated the modified MaxscriptExporter. 2013-03-12 17:09:47 +00:00
Lasse Öörni
5e443328ac Added recursive -parameter to Node::GetComponents() to get components of specific type also from child nodes. 2013-03-12 17:08:07 +00:00
Wei Tjong Yao
b3f1da148d Upgraded the Doxyfile configuration file to remove outdated option and turned on the HAVE_DOT,CALL/CALLER_GRAPH options. Added option to convert doxygen files to HTML in the update document batch/shell file. Replaced '' with '' in the shell scripts to support argument with spaces (just in case). 2013-03-12 15:30:27 +00:00
Wei Tjong Yao
a9209956cd DocConverter skips when wiki output path does not exist. Font support multi-textures (pages) for both TTF and Bitmap font type. Combine the task to dump script API and convert doc to wiki into one process in a new batch file/script. Fixed the attribute index out of bound error when scene node is included as one of the multiple editable nodes. 2013-03-12 13:55:40 +00:00
Lasse Öörni
4652de45fd Compile AngelScript library in arm mode on Android to ensure compatibility with newest NDK's. 2013-03-11 23:03:40 +00:00
Lasse Öörni
97a30bbe78 Cleaned up ListView content resize in regard to automatic scrollbar visibility. 2013-03-11 07:48:37 +00:00
Lasse Öörni
938356ed28 Removed unnecessary nullchecks. 2013-03-11 00:19:52 +00:00
Lasse Öörni
dbac4f482b Fix to scrollbar autovisibility and possible infinite recursion. 2013-03-11 00:04:13 +00:00
Lasse Öörni
07c0f7228a Added flag to ScrollView / ListView whether to set scrollbar visibility automatically. Default true. Calling SetScrollBarsVisible() disables this. 2013-03-10 19:31:34 +00:00
Wei Tjong Yao
14c06b3dc5 Added ability to edit attributes of multiple selected nodes, only mutual attribute values are editable. Modify script API for VariantMap's Erase() method to return bool. Fixed one of the Print() function in IOAPI to use the 'error' parameter. 2013-03-10 17:54:20 +00:00
Lasse Öörni
b1b8a00ace Moved checking for script file name & printing usage inside Application::Run().
Fixed some command line options (-prepass and -deferred) not being printed.
2013-03-10 16:22:43 +00:00
Lasse Öörni
8461f151d5 Removed redundant comment. 2013-03-10 13:56:01 +00:00
Lasse Öörni
0762154240 Fixed shadows when not reusing shadowmaps (missing call to ResetShadowMapAllocations()). 2013-03-10 13:52:57 +00:00
Lasse Öörni
c513645a1a Added modified Ogre Maxscript Exporter contributed by Vladimir Pobedinskij, which outputs materials in Urho3D .xml format. 2013-03-10 12:34:38 +00:00
Lasse Öörni
ab4a9d16c9 Removed unnecessary calling of static function via pointer in exposing the Log object to script.
Fixed trying to write into an unopened file in DocConverter.
2013-03-10 12:08:29 +00:00
Wei Tjong Yao
51c0b76c6b Code cleanup (pardon the dust). 2013-03-10 08:06:06 +00:00
Wei Tjong Yao
4d72b5a609 ScriptAPIDumper dumps to console when output file is not provided. Removed caveat from have to compile with ENABLE_LOGGING. Exposed variants to print to stderr to script. Added shell script for calling ConvertDocsToWiki executable. Fixed Editor application to handle exit on error gracefully. Updated documentation and wiki accordingly. 2013-03-10 06:16:12 +00:00
Lasse Öörni
20619d01b1 Converted Log into a monostate to allow logging without a Context pointer.
Made Time::GetSystemTime() and Time::GetTimeStamp() static as they don't use any instance data.
2013-03-09 22:23:23 +00:00
Lasse Öörni
6e90c6ea13 Fixed bug in win32 ScanDir implementation, which did not scan subdirs if filter was not *.*.
Added Extras directory for contributions which are not strictly Urho3D core.
Added OgreBatchConverter utility from Carlo Carollo, modified to use Urho3D classes to be crossplatform compatible.
2013-03-09 20:42:45 +00:00
Wei Tjong Yao
88cfb4ac4f Fixed the component title labeling bug when more than one node are selected. 2013-03-09 18:51:28 +00:00
Wei Tjong Yao
fb2d208d28 Added new partial UI layout for the component child container. 2013-03-09 18:29:37 +00:00
Wei Tjong Yao
38d12c122c Added functionality to show multiple components in the atribute editor when a node or nodes are selected in the hierarchy window. Remove 'editable' parameter in the attribute creation functions as now whether an attribute is editable or not is dynamically set when loading the attribute value and not at the time of its editor creation. Exposed to all the UIElement-derived class a new function to load (partial) UI layout. 2013-03-09 18:25:35 +00:00