Commit Graph

10202 Commits

Author SHA1 Message Date
Lasse Öörni
b4599e046d Hardware sRGB texture support. OpenGL sRGB framebuffer writing implementation still missing. 2013-03-24 20:05:08 +00:00
Wei Tjong Yao
25372fafd8 Added new ListView attribute to control the root base indent in hierarchy mode. Enhanced the Hierarchy window in Editor to show icon for each item. Need better and more assets for the icons though. 2013-03-24 19:00:19 +00:00
Lasse Öörni
e9aacd1df9 Removed the AttributeListChanged event for now, as it was causing stack overflows in the editor. It was only needed to track changed attributes on script file reload.
Added fast path optimization into Text when has only one texture page (construct vertex data directly without creating the GlyphLocation structure.)
2013-03-24 12:10:57 +00:00
Wei Tjong Yao
dbc4f4b2f0 Fixed a regression issue where existing node was not updated correctly. 2013-03-24 07:13:38 +00:00
Wei Tjong Yao
cb357e8859 Fixed the default UIBatch constructor to init all new member variables. Reapply speed optimisation logic in Text batch. 2013-03-24 05:44:14 +00:00
Lasse Öörni
1032a1db4b Cleaned up includes. 2013-03-24 00:53:24 +00:00
Lasse Öörni
802530deb5 Use SetData() instead of locking the UI vertex buffer to simplify code. 2013-03-24 00:51:40 +00:00
Lasse Öörni
f166775a1d If UI element does not have a gradient, only convert the color once. 2013-03-24 00:24:59 +00:00
Lasse Öörni
c54a81c261 Calculate inverse texture size once during UIBatch construction. 2013-03-24 00:14:07 +00:00
Lasse Öörni
895819e8d2 Removed use of the UIQuad intermediate structure. Instead construct vertex data directly. 2013-03-23 23:28:59 +00:00
Lasse Öörni
1c7f970e30 Synchronize float and integer position of sprites.
Added sprite example application.
2013-03-23 19:52:10 +00:00
Lasse Öörni
5160610e25 Refactored freely rotating / scaling UIElements into a separate Sprite class; removed rotation from the base class as it would not work correctly with element hierarchies in most cases. 2013-03-23 17:50:11 +00:00
Wei Tjong Yao
d7f6b4d0b6 Enhanced UIElement to be able to set a default style file for later reference by children elements, added horizontal indentation feature, and added new E_LAYOUTUPDATED event. Enhanced ListView to better support hierarchy mode and added feature to show 'expansion triangle' in hierarchy mode. Fixed a bug in ScrollView to update view size correctly when resizing content element. Fixed a bug in Log's WriteRaw() method so it sends error message to stderr even in quite mode. Refactored Editor to take advantage of the enhancement. 2013-03-23 12:53:47 +00:00
Lasse Öörni
8d0692740b Added change event for node name. Fixes correct node names not showing up in editor when using "Load Node" and removes need for hardcoded name update.
Removed code for manual resource reload in the editor, as now automatic live-reload should work on all desktop platforms.
2013-03-23 12:47:04 +00:00
Lasse Öörni
171e802c8f Scene change events. Removes need for hardcoded hierarchy updates in the editor. May potentially have caused regressions, so needs to be approached with care. 2013-03-22 13:46:08 +00:00
Lasse Öörni
9ef8625e33 Fixed BorderImage attributes (tiled, blendmode) missing from script API.
Added possibility to rotate UI element contents around a pivot point. Note: UI::GetElementAt(), child elements and child element scissoring do not currently respect rotation.
2013-03-21 23:31:36 +00:00
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