Commit Graph

10192 Commits

Author SHA1 Message Date
Yao Wei Tjong 姚伟忠
60dad27d5f Fix Mac OS X and iOS build from external CMake project.
Since the CMake minimum is bumped up, set the policy CMP0022 to NEW. Incidentally it is also required to be so to stop the static libraries dependency from being transitively get included to other targets that links to Urho3D shared library.
2013-12-17 08:00:11 +08:00
Lasse Öörni
60b3046053 Fix function order in header. 2013-12-17 00:56:45 +02:00
Lasse Öörni
c23c4d2353 Fixed XMLElement on GCC. 2013-12-17 00:47:51 +02:00
Lasse Öörni
d1df925013 Added Image::GetSDLSurface() to avoid code duplication. Fixed crash from null image pointer in Graphics::CreateWindowIcon(). 2013-12-17 00:47:38 +02:00
Lasse Öörni
cb45be26ef Added AngelScript & Lua property accessors for the XMLElement's value.
Added setters for Lua XMLElement.
Updated scripting documentation.
2013-12-17 00:02:49 +02:00
Lasse Öörni
679007d1b5 Normalize whitespace, update documentation. 2013-12-16 23:22:28 +02:00
Lasse Öörni
71f5492cc4 Merge remote-tracking branch 'remotes/alexparlett/xml-value' 2013-12-16 23:02:39 +02:00
Lasse Öörni
cc4c4e6a79 Merge remote-tracking branch 'remotes/alexparlett/window-icon' 2013-12-16 23:01:58 +02:00
Lasse Öörni
9752cbed1e Removed OpenGL scratch buffer allocation log spam, even in debug mode. 2013-12-16 23:00:51 +02:00
Alex Parlett
db38bcf6c0 Added functionality to set the value for a node in the form of <node>value</node>.
Added method to retrieve the value of a node held in the inner xml tags eg. <node>value</node> would return "value" when called on "node"
Added Script Methods for Getting and Setting the value as detailed above (Lua contains Getter only inline with the rest of the functionality)
2013-12-16 20:17:03 +00:00
Alex Parlett
2505149255 Added ability to specify window icon (external application window) using an Image resource and SDL cross platform capability
Added Script Bindings in Lua and Angelscript to support the function
2013-12-16 19:00:30 +00:00
Lasse Öörni
32a9e72752 Fixed GLES low quality shadows. Fixed Android/iOS not initializing engine parameters from CommandLine.txt. 2013-12-16 11:54:58 +02:00
Yao Wei Tjong 姚伟忠
9f3d6f20ea Use -force_load instead of -all_load option for Apple Static linker.
It is to ensure only objects from the specific static libraries are being merged into final output. Objects from standard libraries (ld, m, etc) should be excluded.
2013-12-16 14:15:48 +08:00
primitivewaste
7d641ca3fc Add a grid to the editor. Add default zone and grid editor preferences. Make editor settings and preferences dialogs resizable and scrollable. Fix Pow() script registration. 2013-12-15 20:58:17 -08:00
Lasse Öörni
3abae76ec2 Use constant for number of draw buffers. 2013-12-15 23:15:15 +02:00
Lasse Öörni
3ec6f66fae Do not use PCH on AssImp contrib source files, as they're not all prepared for that. 2013-12-15 14:01:54 +02:00
Lasse Öörni
ba565718e0 Bump required CMake version. 2013-12-15 13:42:15 +02:00
Yao Wei Tjong 姚伟忠
963c46d15b Refactor build scripts.
- Close issue #67, Urho3D iOS library should be built correctly now (either as single arch or as multiple archs Mach-O universal binary). Urho3D library build for Mac OS X and iOS platforms do not rely on CMake hack 'object-collecting' approach anymore. It uses Apple static linker 'ld' tool to merge all objects from third-party *.a directly.
- Add new custom target (Urho3D_universal) for iOS platform to build a single Mach-O universal binary library consists of both iphoneos (universal ARM archs) and iphonesimulator (i386 arch).
- Introduce PLATFORM_PREFIX (ios-, raspi-, android-) to prefix the build and output directories (Build, Bin, Lib).
- Correct Xcode-specific build setting for Mac OS X desktop build to use the latest OS X SDK but set deployment target to current OS X of the build system, unless CMAKE_OSX_DEPLOYMENT_TARGET is set explicitly to build for other target.
- Temporary workaround for CMake/Xcode generator bug where it always appends '/build' path element to SYMROOT attribute and as such the items in Products are always rendered as red as if they are not yet built.
- Change Assimp target to use setup_library() macro so that it gets the same settings (and workaround) as all other targets.
- Add a conditional check to prevent MSVC to build 'buildvm-android' target as it is not supported at this moment.
2013-12-15 18:25:00 +08:00
Lasse Öörni
f07a952096 Added second texcoord support in OgreImporter utility. 2013-12-13 19:03:05 +02:00
Lasse Öörni
ab701e0e26 Only copy file serialization attributes when cloning a node hierarchy. Fixes #70. 2013-12-12 19:11:28 +02:00
Yao Wei Tjong 姚伟忠
e97eedb771 Close Windows gap. No pun intended.
- Fix document build on Windows platform as Windows "shell" failed to perform the file name expansion (globbing) as expected.
- Refactor batch files to they can be invoked from any directory (similar to their shell script counterparts).
- Sort header files for generating event list so the output remains the same accross different scandir implementation.
2013-12-12 19:03:50 +08:00
Lasse Öörni
0859375510 Fixed erroneously removed script API function. 2013-12-08 23:37:41 +02:00
Lasse Öörni
34abc97998 Change the LineEdit elements in the file selector & console to match the height of other LineEdits in the editor. Remove hardcoded adjustment code from FileSelector.cpp & Console.cpp and rely on the style instead. 2013-12-08 23:30:44 +02:00
Lasse Öörni
7e0cafaf53 Check font's OS/2 info for possibly larger ascender & descender values. For safety, verify each font glyph's width & height against the actual glyph bitmap width & height. Use the maximum of specified row height or the ascender + descender. 2013-12-08 20:48:49 +02:00
Lasse Öörni
ebdf337610 Fixed false positive bug in String::EndsWith(). 2013-12-08 01:40:13 +02:00
Lasse Öörni
dc6294af16 Added generated event list documentation page. Closes #66. 2013-12-08 01:39:36 +02:00
Lasse Öörni
5fa9116be1 Drag-related code cleanup. 2013-12-07 22:35:26 +02:00
Lasse Öörni
0d7d4826e5 Add pixel & time threshold for sending a drag begin UI event. Closes #65. Removed code duplication between mouse & touch hover. 2013-12-07 22:20:28 +02:00
Lasse Öörni
5046508a9a Added emissive shader variations to LitSolid shader. Default emissive modulation color to white, similar to environment map color. 2013-12-07 00:44:14 +02:00
primitivewaste
12c372aa22 Fix editor toolbar not resizing and ui re-layout values after resize.
Enhance toolbar editmode select icon.
2013-12-06 12:59:32 -08:00
Lasse Öörni
534b1d41fd Fix crash on empty file name. 2013-12-06 18:47:35 +02:00
Lasse Öörni
7e542be196 Added Save function to ParticleEmitter, which dumps the parameters as XML. Added menu items to editor to load/save ParticleEmitter parameters. Closes #51. 2013-12-06 18:47:35 +02:00
Lasse Öörni
ee16554602 Merge pull request #68 from friesencr/patch-1
change doxygen location in readme to new github location
2013-12-06 07:52:25 -08:00
Chris Friesen
225c422930 change doxygen location in readme to new github location 2013-12-06 09:23:36 -06:00
Lasse Öörni
088dba041c Fix missing sound playback start/stop when using the play/pause buttons in editor toolbar. Improved sphere debug drawing. Added debug drawing to SoundSource3D. Closes #63. 2013-12-06 16:50:29 +02:00
primitivewaste
53f6483931 Added a toolbar to the editor. 2013-12-05 12:08:54 -08:00
Yao Wei Tjong 姚伟忠
04404b768d Update documentation page to link back to shorten Urho3D website URL. 2013-12-06 00:03:01 +08:00
Yao Wei Tjong 姚伟忠
52de3a135c Fix deploying multiple samples in iOS (virtual) devices.
Each (samples) iOS app now has its unique bundle ID based on the derived product name.
2013-12-05 21:40:14 +08:00
Lasse Öörni
f4be17256e Fix wrong include path for iOS build. 2013-12-04 23:23:04 +02:00
Yao Wei Tjong 姚伟忠
89a05a8017 Update documentation to reference back to new main site. 2013-12-04 23:53:35 +08:00
Lasse Öörni
7d83a44d13 Make resource dirs absolute when added to ResourceCache. Sanitate away /./ construct from the runtime program dir and resource dirs. Closes #64 2013-12-04 15:21:20 +02:00
Lasse Öörni
a9fda01ae7 Fixed unnecessary duplicate boundingBox_ member variable in DecalSet. 2013-12-04 01:10:03 +02:00
Lasse Öörni
7d92368dca Fixed logic bug in Audio subsystem related to mixing fragment size. Fixed uninitialized dataSize_ member in Sound. 2013-12-04 00:57:34 +02:00
Lasse Öörni
a37ea5bb6e Added inner and outer angle parameters to SoundSource3D, which makes it possible to do cone-like directional sounds. Fixed sound attenuation if near and far distance are the same. Closes #49. 2013-12-04 00:25:20 +02:00
Lasse Öörni
aa0f72cf65 Added world position & normal to RayQueryResult. 2013-12-02 23:20:00 +02:00
Lasse Öörni
a022430876 Added Random() & RandomInt() script functions with min & max range parameters. Similar to the RandomInt(range) overload, in RandomInt(min, max) the max value is exclusive. Note that the corresponding C++ functions are simply called Random for both int and float versions. Closes #48. 2013-12-02 21:44:39 +02:00
StevenZhang
a17baf2695 make AngelScript an optional module, you can use -DENABLE_ANGELSCRIPT=0 to disable it. 2013-12-02 19:02:39 +02:00
Yao Wei Tjong 姚伟忠
4eee3b8a96 Lower user-created UI elements' priority. Closes #60. 2013-12-02 12:23:50 +08:00
Lasse Öörni
3d905f2bf0 Append FileSelector filter extension in editor when saving files, if no extension entered to filename. Closes #57. 2013-11-30 16:59:14 +02:00
Lasse Öörni
79eac917be Fixed distance update for Drawables for draw distance & shadow draw distance checks. Closes #56. 2013-11-30 16:57:54 +02:00