Commit Graph

9612 Commits

Author SHA1 Message Date
Lasse Öörni
afb9e2ce5f Change virtual functions in Application back to public so that making conforming derived classes is more straightforward. 2013-07-31 09:34:57 +00:00
Aster Jian
51a1e1bd3f Report Lua script error in ErrorDialog. 2013-07-31 05:53:06 +00:00
Wei Tjong Yao
256eb5ac78 Refactored CMake build script to separate reusable commands and macros into module for easy inclusion in external project. Added option to build Urho3D static/shared library (currently only works in Linux GCC). Added new FindUrho3D.cmake module for setting up Urho3D as external library in other user-defined project. 2013-07-31 02:10:08 +00:00
Lasse Öörni
8a94f363ee Material technique editing. 2013-07-30 22:57:11 +00:00
Lasse Öörni
6284d0db72 Expose material's TechniqueEntries to script.
Accuracy fixes to some classes' AngelScript app class type.
2013-07-30 15:12:57 +00:00
Lasse Öörni
0eb06b2438 Updated to AngelScript 2.27.
Renamed Thread::Start() to Thread::Run() to match Application class.
2013-07-30 13:24:18 +00:00
Lasse Öörni
e72aefca9a Applied Color class improvements from Paul Noome. 2013-07-30 11:17:56 +00:00
Lasse Öörni
75b187588f Make the material revert action undoable. 2013-07-30 07:59:46 +00:00
Aster Jian
c142daf891 Restore script file name for iOS and Android. 2013-07-30 07:31:49 +00:00
Aster Jian
deee8e8162 Change function argument from const char* to String. 2013-07-30 06:30:16 +00:00
Lasse Öörni
ab50955ec4 Added alternative API to serialize Material into an XML element instead of a file.
Material edit undo/redo actions.
2013-07-29 10:38:37 +00:00
Lasse Öörni
4780daa022 Avoid fullupdate to material editor's textures when picking a texture. 2013-07-29 07:06:36 +00:00
Lasse Öörni
58add4d8e0 UI event order consistency on mouse click. Fix the order to click, double click, drag, first handled by the elements themselves and then sent as an event.
Bring material editor window to front when opened.
2013-07-28 22:00:12 +00:00
Lasse Öörni
d13fb7fc81 Treat empty textedit as 0 value when editing material shader parameters. 2013-07-28 21:08:45 +00:00
Lasse Öörni
c5dd749509 Texture picking in the material editor. 2013-07-28 20:52:15 +00:00
Lasse Öörni
05178ba2e9 Remember last path when selecting material to edit. 2013-07-28 19:14:56 +00:00
Lasse Öörni
0b657a893d Continue work on material editor.
Added shaderParameterNames property to Material's AngelScript API.
Added error prints to possible resource loading error situations.
2013-07-28 18:57:00 +00:00
Wei Tjong Yao
0e8d03a66e Fixed mouse wheel event handling. 2013-07-28 16:50:16 +00:00
Lasse Öörni
8516b9335a If a child element set a style name without a style file, apply it when added to parent. 2013-07-28 13:24:25 +00:00
Wei Tjong Yao
0cd4d9cbe3 Quick fixed DocConverter tool to handle wiki table. 2013-07-28 05:53:59 +00:00
Wei Tjong Yao
70479632a0 Fixed typo error on comment. 2013-07-28 02:40:38 +00:00
Wei Tjong Yao
1a5670b65c Updated documentation on Raspberry Pi port. 2013-07-28 01:03:38 +00:00
Aster Jian
e97a4f6407 Add BAT and SH file for Lua Sample. 2013-07-27 15:02:15 +00:00
Aster Jian
85b9268cba Add write only property. 2013-07-27 14:25:14 +00:00
Aster Jian
1c02a7a7a7 Change Lua Hello World sample in OOP. 2013-07-27 13:45:29 +00:00
Wei Tjong Yao
320d6fd9e6 Grab the input device while engine is running on a Raspberry Pi so that the keystrokes intended for Urho3D do not redundantly get echoed out in the virtual terminal or shell that starts the engine. 2013-07-27 12:26:29 +00:00
Wei Tjong Yao
fec4a8fef5 Fixed the SystemOpen() on Mac/Linux platform to use the full path to the executable as the new file check in the SystemRun() does not consider system-wide search PATH environment variable. 2013-07-27 08:55:49 +00:00
Lasse Öörni
3652088894 Removed bool operator from shared & weak pointers, as it led to erroneous comparisons between shared pointers of base & subclass. The conversion operator to raw pointer should rather work as expected. 2013-07-26 23:13:20 +00:00
Lasse Öörni
6095d2ac11 Ensure cursor is rendered on top of all other UI elements. Removed the SetTempVisible() hack from UIElement. 2013-07-26 22:43:56 +00:00
Lasse Öörni
1d57f729a9 Renamed the Urho3D executable's application class to Urho3D. 2013-07-26 17:17:02 +00:00
Lasse Öörni
7ff755194d Set OpenGL pixel alignment to 1 for texture reads/writes to support textures with odd widths without padding. 2013-07-26 16:08:59 +00:00
Aster Jian
bbfdc536ad Support call Lua function in a table. Add CreateChild support in UIElement. 2013-07-26 15:48:42 +00:00
Lasse Öörni
57899bce0c Added skeleton of a material editor window. 2013-07-26 15:46:55 +00:00
Aster Jian
91841334df Add Lua HelloWorld Sample. 2013-07-26 14:20:41 +00:00
Lasse Öörni
ae5871d912 Documented Application class.
Added deprecation note to the C++ Quickstart documentation page.
Fixed ScriptCompiler.
2013-07-26 14:04:27 +00:00
Lasse Öörni
d9b6362305 Refactored Application class to not require exit codes in the virtual functions. Rather the ErrorExit() function can be called if the application should not go on to the main loop. 2013-07-26 13:30:39 +00:00
Lasse Öörni
5136dcab3f Added Sample base class for samples, adapted from Aster Jian's code. 2013-07-26 12:51:46 +00:00
Aster Jian
9e7bfd2c1f Remove unused function in Object.pkg. 2013-07-26 12:45:21 +00:00
Aster Jian
6225222566 Add base class for Console. 2013-07-26 12:43:56 +00:00
Lasse Öörni
17970c184d Added Context.h include to Application.h. 2013-07-26 12:16:08 +00:00
Lasse Öörni
dc7898ba1f Added an Application base class which can be optionally used to execute an engine main loop, and perform initialization/shutdown.
Modified Urho3D, CharacterDemo & HelloWorld to use the Application class.
Modified engine initialization so that subsystems are created before initialization where possible.
Modified Renderer to not cache the ResourceCache pointer to prevent crash depending on event handling order when setting the screen mode.
2013-07-26 12:06:19 +00:00
Wei Tjong Yao
485bcf9b8c Code cleanup. 2013-07-26 10:11:10 +00:00
Wei Tjong Yao
6a6a5e4adc Fixed GetPlatform() to correctly return 'Raspberry Pi' as the platform name on Pi. Fixed Editor's mouse cursor not visible on Pi. 2013-07-26 08:04:29 +00:00
Wei Tjong Yao
fa2c5aba99 Fixed Raspberry Pi build for Raspbian - add module file itself. 2013-07-26 07:03:27 +00:00
Wei Tjong Yao
648c363ba1 Fixed Raspberry Pi build for Raspbian. 2013-07-26 07:01:42 +00:00
Wei Tjong Yao
1addaa979d Changed the build script to make Raspberry Pi build has the same behaviour between native build and cross-compile build. 2013-07-26 00:03:33 +00:00
Wei Tjong Yao
5d28038fa4 Fixed the subproject dependency problem for Raspberry Pi native build. 2013-07-25 23:29:07 +00:00
Wei Tjong Yao
f5d649077d Reverted Doxyfile. 2013-07-25 15:58:12 +00:00
Wei Tjong Yao
cc99a07a53 Added Raspberry Pi port, currently only supported in GCC build either natively or cross compiling (if the CC tool is detected). Moved the gcc out-of-source build directory one more level up as it is better supported by cmake/eclipse generator this way. Enhanced shell scripts so they can be invoked in any directory. A few bug bug fixes on SDL library code. 2013-07-25 15:56:53 +00:00
Lasse Öörni
eea9b8da0d Added a larger version of the Urho3D logo.
Make GPUObject::GetGraphics() not inline so that including GPUObject.h does not also require including Graphics.h.
Added possibility to enable OpenGL mode through CMake command line.
2013-07-25 12:59:38 +00:00