Commit Graph

9869 Commits

Author SHA1 Message Date
Lasse Öörni
5f6714920f Fixed 64bit build on Linux. 2013-04-30 18:39:55 +00:00
Lasse Öörni
85ebeeed2e Improved LightTest example to allow toggling renderpath at runtime, and to show instructions on screen. 2013-04-30 11:12:21 +00:00
Wei Tjong Yao
703d4fb10d Fixed text rendering in Chat example app due to DefaultStyle.xml changes (Bug exists in the last release tag v1.23). Minor documentation fixed on NinjaSnowWar app. Cleaned up DefaultStyle.xml even more to remove repeating attribute declaration by taking advantage of the style inheritance feature. Changed the semantic of UIElement's style property in Script. 2013-04-30 10:53:35 +00:00
Lasse Öörni
c0dbf7f545 Generalized the factory category for all objects.
Removed hardcoded UI element type list in Editor.
2013-04-29 21:40:58 +00:00
Lasse Öörni
ef42c4faec Added explicit -m64 flag for 64bit compile on GCC. Added String constructors that take long or unsigned long as parameter. 2013-04-29 17:14:35 +00:00
Wei Tjong Yao
344aa8a8b8 Added nullcheck. 2013-04-29 14:55:49 +00:00
Lasse Öörni
2afdf2675a Fixed Windows build.
Some tweaks to component categories.
Documentation update.
2013-04-29 13:01:29 +00:00
Wei Tjong Yao
8d1c28bc3e Group components into categories. In the Editor app, dynamically create the menu structure based on the component categories. Added new GetCategory() method in Component class and exposed it to script. Reviewed and fixed as necessary the default attributes registration of Component's descendant classes. Removed 'Attenuation' and 'Panning' attributes from SoundSource3D as they are updated constantly in this class. Enhanced Context class to 'register' component category during the component factory registration. 2013-04-29 10:22:25 +00:00
Lasse Öörni
d24ec7bc0d Fixed redundant SSE flag in 64bit mode. 2013-04-29 08:38:56 +00:00
Wei Tjong Yao
6dcbde01e4 Fixed GCC build (32-bit). 2013-04-29 03:57:49 +00:00
Lasse Öörni
3ff3be016b Copied pointer cast fixes from the OpenGL code. 2013-04-29 01:00:44 +00:00
Lasse Öörni
85415e5cb3 Fixed 64bit compile on GCC / OS X. 2013-04-29 00:57:47 +00:00
Lasse Öörni
6079e8cf84 Copied asm-bits from newest LibCpuId.
Updated documentation.
2013-04-29 00:20:29 +00:00
Lasse Öörni
fed83fb1ca Some slightly nasty casts to reduce warnings in header files on 64bit MSVC compile. The length of strings/containers is intentionally stored as 32bit even in a 64bit compile to ensure the script API stays unchanged. 2013-04-28 23:53:07 +00:00
Lasse Öörni
9e3282aeea Initial fixes for compiling as 64bit (MSVC.) 2013-04-28 22:19:20 +00:00
Lasse Öörni
5ddb47b09d Added profiling block for engine initialization. 2013-04-28 17:20:20 +00:00
Lasse Öörni
4625dc78a2 Applied contact processing threshold patch from primitivewaste.
Cleanup scenepass metadata processing code.
2013-04-28 12:25:36 +00:00
Lasse Öörni
7ba580852d Allow custom forward base, lighting and alpha pass names by defining metadata in the render path, and allowing the forwardlights command to specify the pass name to use. 2013-04-28 11:45:10 +00:00
Wei Tjong Yao
dcf9099d1f Modified the SetStyle() and SetStyleAuto() methods of UIElement class to return a bool indicating whether the operation is successful. In Editor app, when fails to set to a requested icon type then automatically set to an 'unknown' icon type. 2013-04-28 06:26:03 +00:00
Lasse Öörni
3279cc74fc Updated changelog. 2013-04-27 23:12:31 +00:00
Lasse Öörni
8833a01ff9 Removed debug print. 2013-04-27 18:16:47 +00:00
Lasse Öörni
d89b90b096 Slight adjustment to ninja start position. 2013-04-27 11:29:08 +00:00
Lasse Öörni
4027f650cd Fixed exposing of UIElement::GetDefaultStyle() to script.
Documentation update.
2013-04-27 11:08:36 +00:00
Wei Tjong Yao
7457923437 Minor code cleanup in Editor app. 2013-04-27 09:58:29 +00:00
Lasse Öörni
de3997dcfd Send events for view update begin/end and view render begin/end. 2013-04-26 22:56:04 +00:00
Lasse Öörni
4e1e1f9ce6 Converted static const String arrays to const char* arrays where applicable.
Removed unneeded W32Clock.cpp (old kNet file.)
2013-04-26 17:28:18 +00:00
Wei Tjong Yao
7d2c5db872 Differentiate between scene-modified and individual ui-element file-modified in the Editor app. 2013-04-26 15:31:20 +00:00
Wei Tjong Yao
a4479c65ec New UI-element style is applied after removing the 'effect' from the old style. 2013-04-26 10:00:48 +00:00
Wei Tjong Yao
1b2497dc10 Added new LoadChildXML() method to UIElement and exposed it to Script. Changed Editor app to call LoadChildXML() instead of LoadXML() to prevent child XML-chunk from accidentally modifying the parent element's tyle. Note: child XML-chunk does not require nested element tag anymore. 2013-04-26 04:11:05 +00:00
Lasse Öörni
cebf24fdca Minor code cleanup. 2013-04-25 21:38:39 +00:00
Wei Tjong Yao
2c10af2385 Reverted back the last changes. 2013-04-25 15:18:58 +00:00
Wei Tjong Yao
0927d087d4 Added instruction in the child XML-chunks for the Attribute Inspector to skip style processing for the root element as we do not want the child XML-chunk to affect its parent element besides creating new child element as per defined in the chunk. 2013-04-25 14:56:02 +00:00
Wei Tjong Yao
fe5b26abd7 Manipulation of UI-element's style in the Attribute Inspector's Style drop down list is now functional. At the moment new style is applied on top of existing attribute values (i.e. without first removing the effect of existing style). Adjusted DefaultStyle.xml to enable highlight on selected item in DropDownList. 2013-04-25 14:39:35 +00:00
Lasse Öörni
106cb89d56 Allow camera's viewmask to affect which zones are used for rendering. Drawables will be dynamically reassigned into the visible zones when rendering. This adds possibility to render the same scene in eg. an RTT view with a different zone. 2013-04-25 12:31:27 +00:00
Lasse Öörni
8b6189090f Prevent log spam if a postprocess shader is not found. 2013-04-25 07:27:22 +00:00
Lasse Öörni
9d507640f7 Exposed Ray<>Frustum HitDistance() to script, and added solidInside parameter to it which determines whether the inside of the frustum is interpreted as solid (return zero distance for rays originating within.) 2013-04-24 22:02:02 +00:00
Lasse Öörni
8f5623d9bb Renamed RenderPath::LoadParameters() to Load() and ParticleEmitter::LoadParameters() to SetParameters() as LoadParameters() is used in other classes to denote loading of optional parameters, not the main asset itself.
Fixed incorrect exposing of BillboardSet::GetMaterial() & ParticleEmitter::GetMaterial() to script.
2013-04-24 21:38:09 +00:00
Lasse Öörni
f4a3014d75 Corrected ShaderCompiler documentation.
ShaderCompiler output dir is no longer mandatory, if not specified, will use input dir.
2013-04-24 17:05:06 +00:00
Wei Tjong Yao
521ee691c3 Enhanced DropDownList to support showing of placeholder text when there is no selection. The text could be used to show a 'Please choose ...' kind of prompt. Rearranged child XML-chunk resources responsible for Attribute Inspector to remove duplicate definition. Added new child XML-chunk to display and manipulate applied style of the UI-element in the Editor (not yet fully functional). Adjusted DefaultStyle.xml to distinguish between auto and non-auto types. Added new method in Serializable to remove instance default and in UIElement to return applied style name, in preparation for future work. 2013-04-24 13:34:03 +00:00
Lasse Öörni
90233154ab Added padding attribute to NavigationMesh, which expands the bounding box to allow adding geometry in partial rebuilds. 2013-04-24 07:30:16 +00:00
Wei Tjong Yao
fd8b475a3e Enhanced Attribute Inspector to display 'strike-out' visual cue in DropDownList editor having different values in multi-edit case. 2013-04-24 02:28:34 +00:00
Wei Tjong Yao
a1cd90dff6 Fixed Zone's override-mode and ambient-gradient attribute default value registration. Fixed Editor's hierarchy auto expansion when selecting item via view raycast. 2013-04-24 01:55:40 +00:00
Lasse Öörni
0df99637a0 Updated documentation. 2013-04-23 19:04:47 +00:00
Lasse Öörni
38498ab24c Completed the OffMeshConnection implementation.
Added Ctrl+LMB in the Navigation test to create offmesh connections.
2013-04-23 18:43:37 +00:00
Wei Tjong Yao
ea2c1f8ae2 Fixed Octree's bounding box attribute default value registration. 2013-04-23 17:52:40 +00:00
Wei Tjong Yao
79b2fc726c Added option in UI-element editor to show/hide the internal UI-elements, configurable in the editor's preferences window. Adjusted CheckBox UI-element to have fixed size by default. 2013-04-23 17:36:02 +00:00
Wei Tjong Yao
f5aa8898da Fixed UIElement's SetParent() method which was exposed to the Script API with wrong signature previously. Added drag-and-drop support for UI-element in Editor app. 2013-04-23 16:20:21 +00:00
Wei Tjong Yao
da08a0b451 Added New reset-to-default icon in the Attribute Editor. Fixed the reset-to-default functionality to call ApplyAttributes() method after modifying the attribute values. 2013-04-23 09:38:05 +00:00
Lasse Öörni
464335c726 Added OffMeshConnection component. Not yet used in the navigation mesh. 2013-04-22 22:45:34 +00:00
Lasse Öörni
0ef6e3f135 Added profiling blocks to shader loading.
Renamed Engine::DumpProfilingData() to Engine::DumpProfiler() to be shorter to type on the console.
2013-04-22 22:11:44 +00:00