Commit Graph

9836 Commits

Author SHA1 Message Date
Yao Wei Tjong 姚伟忠
f9f13cd3fa Add build script for generating Code::Blocks project on Windows host.
Close #644.
2015-01-30 11:46:06 +08:00
urho3d-travis-ci
c747198101 Travis CI: API documentation update at 2015-01-29 14:56:49 UTC.
[ci package]
2015-01-29 14:56:49 +00:00
aster2013
c11db9fdcd Add SetAlpha in StaticSprite2D to AnimatedSprite2D alpha animation bug.
Add typedef in Vector and HashMap.
2015-01-29 22:45:22 +08:00
Yao Wei Tjong 姚伟忠
64a96090e3 Code and comment clean up. 2015-01-29 20:51:35 +08:00
Yao Wei Tjong 姚伟忠
8e81d3ff36 Use regex replacement to handle path with spaces in between correctly.
Enhance build scripts to handle source tree and build tree with spaces.
Fix PCH generation with incorrect compiler flags caused by -fPIC and -fpic from being added at the same time.
Fix compiler warning on Android platform with PCH enabled on the external main project due to CMake bug in 'VISIBILITY_INLINES_HIDDEN' implementation.
Close #637.
2015-01-29 20:15:13 +08:00
Yao Wei Tjong 姚伟忠
4db362f95c Use the actual dependency list returned by the compiler. 2015-01-29 16:13:43 +08:00
Yao Wei Tjong 姚伟忠
9c61a7673b Add option to exclude individual C++ source file from using PCH.
Clean up enable_pch() macro and minor update on code comments.
2015-01-29 16:13:43 +08:00
Yao Wei Tjong 姚伟忠
51178c4328 Enable PCH for Assimp library with GCC/Clang compilers too.
Simplify to always use force include when enabling the PCH.
2015-01-29 16:13:43 +08:00
Yao Wei Tjong 姚伟忠
e0bab60f46 On MSVC also enable PCH in two phases to cater for generated C++ files. 2015-01-29 16:13:43 +08:00
Yao Wei Tjong 姚伟忠
7ddd46b172 Move GenerateExportHeader module inclusion to Urho3D common module. 2015-01-29 16:13:42 +08:00
Yao Wei Tjong 姚伟忠
11814c9cc6 Add check so that precompiled header is only included for C++ sources. 2015-01-29 16:13:42 +08:00
Yao Wei Tjong 姚伟忠
18261e3d2a Use Cmake function to determine whether to add compiler export flags. 2015-01-29 16:13:42 +08:00
Yao Wei Tjong 姚伟忠
f50ffaff8c Fix precompiling header file for Clang. [ci rebase] 2015-01-29 16:13:42 +08:00
Yao Wei Tjong 姚伟忠
8f2ac49cb0 Suppress GCC/Clang warning on pragma once on main file.
Fix precompiling header file on MinGW builds.
2015-01-29 16:13:42 +08:00
Yao Wei Tjong 姚伟忠
fdcd44381a Keep the CMake version less than 2.8.12 happy. 2015-01-29 16:13:42 +08:00
Yao Wei Tjong 姚伟忠
f719e3a429 Remove explicit inclusion of precompiled header file.
The precompiled header file would be included using compiler flags.
2015-01-29 16:13:42 +08:00
Yao Wei Tjong 姚伟忠
8743413816 Attempt to enable precompiled header support for GCC and Clang. 2015-01-29 16:13:41 +08:00
Lasse Öörni
4ff4d8e486 Fix crash related to dragElements_ iteration re-entry. Code convention fixes. Closes #642. 2015-01-28 22:03:30 +02:00
Lasse Öörni
4d8ad0888f Clang friction fix from bullet3 repo. 2015-01-28 14:02:33 +02:00
Lasse Öörni
86df5e0a96 Use Renderer as the event sender for view update begin & end events to not break code relying on that. 2015-01-27 22:02:55 +02:00
Lasse Öörni
2153a5dfc5 Removed unnecessary line of code. 2015-01-27 21:38:13 +02:00
Lasse Öörni
62b3d6987f Remove all instances of Drawable2D from materialDirtyDrawables_ when it is being removed from the scene. Fixes #618. 2015-01-27 21:36:04 +02:00
Lasse Öörni
7740bb5ee4 Do not call MarkForUpdate() in AnimatedSprite2D, as Drawable2D's are not added to the octree. 2015-01-27 20:58:37 +02:00
Yao Wei Tjong 姚伟忠
b82fe08521 Fix wrong include search path for Bullet and Lua. Fix #640. 2015-01-27 16:46:52 +08:00
Lasse Öörni
a12cd3823e Multiple view support for 2D drawables. Closes #638. 2015-01-27 01:21:13 +02:00
urho3d-travis-ci
b8e66f96ac Travis CI: API documentation update at 2015-01-26 20:36:19 UTC.
[ci package]
2015-01-26 20:36:19 +00:00
Lasse Öörni
c2535edac3 Added LOD level attribute support to Terrain collision shape & SetTerrain() function. This works like mipmap levels: each successive LOD level halves the resolution. Closes #639. 2015-01-26 22:23:26 +02:00
Lasse Öörni
c75f38b5a1 Use range-based for in ForEach.h if available. Closes #561. 2015-01-26 17:56:01 +02:00
urho3d-travis-ci
39bbb86205 Travis CI: API documentation update at 2015-01-26 12:26:14 UTC.
[ci package]
2015-01-26 12:26:14 +00:00
Lasse Öörni
3dc651ca74 Fix Renderer2D build. Code cleanup. 2015-01-26 13:33:37 +02:00
Lasse Öörni
5198313a93 Fix null exception in multiple nodes duplication. Closes #632. 2015-01-26 01:12:05 +02:00
Lasse Öörni
988d77f06c Removed GetVisibility / SetVisibility from Drawable2D. Instead they are marked for view similarly as other drawables. Fixes #636. 2015-01-26 00:59:39 +02:00
Lasse Öörni
e67d9d3065 Include iOS 8 orientation fix conditionally. Fixes #635. 2015-01-25 23:49:35 +02:00
urho3d-travis-ci
809d4fb920 Travis CI: API documentation update at 2015-01-23 13:47:05 UTC.
[ci package]
2015-01-23 13:47:05 +00:00
Mike3D
354d1bb8c0 Added lua bindings for TileMap2D::DrawDebugGeometry() and TileMapLayer2D::DrawDebugGeometry() 2015-01-23 13:53:55 +01:00
aster2013
69185a10ce Revert typedef. 2015-01-23 20:22:02 +08:00
aster2013
a8833c9712 Add typedef in Vector and HashMap. 2015-01-23 20:02:56 +08:00
Lasse Öörni
f1545328b3 Hack fix for window size on iOS 8. Fix screen joysticks not resizing along with the screen. Note that there may still be other iOS 8 orientation bugs, for example related to the screen keyboard. These are pending a proper fix from SDL. Closes #553. 2015-01-23 11:29:35 +02:00
Yao Wei Tjong 姚伟忠
75c1d9780c Fix red screen issue on affected Android devices models, e.g. S3. 2015-01-22 20:07:16 +08:00
Lasse Öörni
3115f08265 Enforce Urho3DPlayer command line format and only use the first argument as the script file name to avoid misparsing rest of the command line. See #628. 2015-01-22 11:27:54 +02:00
Lasse Öörni
40879a3b49 Fix includes and namespace in the application C++ example. 2015-01-21 18:18:06 +02:00
Lasse Öörni
dc39d9e17c Fix wrong matrix math in gizmo scaling. Take zoom into account. 2015-01-21 12:12:47 +02:00
Yao Wei Tjong 姚伟忠
fd84488a73 Add new build option to setup main executable as console application.
The new build option is only applicable for Windows platform only.
2015-01-21 16:50:09 +08:00
urho3d-travis-ci
97b83aaa0a Travis CI: API documentation update at 2015-01-21 04:12:47 UTC.
[ci package]
2015-01-21 04:12:47 +00:00
Lasse Öörni
2cb66a1d36 Clean up ScriptFile & ScriptInstance Execute() AngelScript bindings. Allow to call ScriptFile::Execute() without parameters. 2015-01-20 23:54:43 +02:00
Lasse Öörni
895dfcdb3a Fix gizmo scale in orthographic mode (ortho size not taken into account). Cleaned up gizmo scaling code to use camera view matrix. Closes #626. 2015-01-20 18:03:28 +02:00
Lasse Öörni
6e5d0db379 If Urho3DPlayer command line is empty, attempt to read Data/CommandLine.txt on all platforms. Closes #615. 2015-01-20 12:42:53 +02:00
Yao Wei Tjong 姚伟忠
ed214bbeb3 Avoid the include dirs hack for finding the Urho3D.h header.
It is now a library user own's responsibility to include the Urho3D.h in their source code. Or to include it as part of their own precompiled header similar to what Urho3D project has done.
2015-01-20 18:15:29 +08:00
Lasse Öörni
bcf451bfe2 Prevent additive scale modification making particle scale negative. Closes #624. 2015-01-20 11:23:59 +02:00
Lasse Öörni
40f2229954 Specify extern also in .cpp file to fix error on MinGW. Normalize order of extern and dllexport/import. 2015-01-20 11:04:54 +02:00