Commit Graph

9612 Commits

Author SHA1 Message Date
Yao Wei Tjong 姚伟忠
e496dfbbcb Prevent spamming stderr stream when log file could not be opened.
This occurs when the binary is installed and executed in a filesystem where user does not have write permissions.
2013-11-02 18:07:54 +08:00
Yao Wei Tjong 姚伟忠
8c248bdb7c Fix URHO3D_INCLUDE_DIR to also include sub-dirs to 3rd-party headers. 2013-11-02 17:10:25 +08:00
Yao Wei Tjong 姚伟忠
52ff881c54 Add 'install' option (currently only available for native build).
Also enhance FindUrho3D.cmake module to find Urho3D library in the Urho3D SDK installation location.
2013-11-02 16:45:44 +08:00
Lasse Öörni
8ca86afbe7 Merge branch 'sdl-update' 2013-11-02 01:04:02 +02:00
Yao Wei Tjong 姚伟忠
8ff3348503 Refactor define_dependency_libs macro.
Change to remove the references to engine's sub-library targets which are now defunct. General cleanup of the build scripts.
2013-11-01 17:58:47 +08:00
Yao Wei Tjong 姚伟忠
ba55fd1ecf Add iOS app bundle directory pattern into .gitignore. 2013-11-01 00:36:14 +08:00
Yao Wei Tjong 姚伟忠
b15b871db5 Fixed CMake warning after upgrading to CMake 2.8.12. 2013-10-31 23:06:02 +08:00
Yao Wei Tjong 姚伟忠
da155d2b9a Generating all the output files in the desired output directories.
Thus, avoiding the copying and symlinks setup (for Xcode debugging) post-build steps.
2013-10-31 17:27:18 +08:00
Yao Wei Tjong 姚伟忠
7e64ba7557 Add Android auto-generated project properties to .gitignore.
Also, do not create symbolic link to project.properties anymore.
2013-10-31 13:04:50 +08:00
Lasse Öörni
67e8ea47e5 Do not attempt to copy the .pdb for static Urho3D lib due to recent CMake behavior change. Fixes #32. 2013-10-31 02:46:54 +02:00
Lasse Öörni
c057b29dba Unify how command line options are shown in utilities.
Added note in documentation about lack of space between command line option and its parameter.
Prepend Materials/ to the material list written by OgreImporter (assume "standard" materials subdirectory.)
2013-10-30 18:49:27 +02:00
Yao Wei Tjong 姚伟忠
cdd9b7bdea Reverted back EXTRA_FLAGS which was changed unintendedly. 2013-10-30 18:14:41 +08:00
Yao Wei Tjong 姚伟忠
6071001b5c Refactor define_source_files macro.
Change the argument names to indicate their intent usage better. Add option to pass in directly globbing patterns.
2013-10-30 18:06:24 +08:00
Yao Wei Tjong 姚伟忠
4b549c9c7a Revert back to no-ops for Input::SetMouseVisible() on RPI.
The OS cursor on Raspberry Pi does not behave like other OS cursor on other platforms.
2013-10-30 17:00:02 +08:00
Yao Wei Tjong 姚伟忠
95a9c71a21 Fixed runtime issue on Raspberry Pi with Pidora as OS. 2013-10-30 12:31:32 +08:00
Lasse Öörni
b957f60143 Added ApplyMaterialList() function to StaticModel so that the feature can be used outside the editor as well. Refactored editor to use that function instead of its own implementation.
Unified the switch to output material list to -l in both AssetImporter & OgreImporter.
Removed the "use local IDs" toggle from editor as that can be specified with the import options.
2013-10-29 23:04:51 +02:00
Yao Wei Tjong 姚伟忠
953f87d052 Fixed mouse motion spin bug.
This bug only manifests itself when the SDL video driver has "WarpMouse" function implemented, like RPI video driver, in conjuction with call to SDL_SendMouseMotion() with relative event position.
2013-10-29 23:48:03 +08:00
Yao Wei Tjong 姚伟忠
7a82151933 Reenable the function for RPI since new video driver support mouse. 2013-10-29 22:07:43 +08:00
Yao Wei Tjong 姚伟忠
f442c0c16a Updated documentation on additional Linux software package for RPI. 2013-10-29 21:28:38 +08:00
Yao Wei Tjong 姚伟忠
9e09e958dc Fixed event handling for Raspberry Pi. 2013-10-29 13:58:47 +08:00
Lasse Öörni
8077ee4a53 Added option to OgreImporter to save material list file next to the model. 2013-10-28 21:35:53 +02:00
Yao Wei Tjong 姚伟忠
6cf19fa9ce Fixed Raspberry Pi error (could open Window). 2013-10-28 22:30:01 +08:00
Lasse Öörni
3ce378d5e2 Merge branch 'master' into sdl-update 2013-10-28 13:13:08 +02:00
Yao Wei Tjong 姚伟忠
e423a26461 Refactor CMake build scripts.
Changes:
- Avoid globbing engine source files twice.
- Setup folder group for VS and Xcode. Also group object files according to 3rd-party library name.
- New define_source_files() macro.
2013-10-28 18:21:18 +08:00
Lasse Öörni
c1a1864a40 Fixed black window on subsequent application starts on Android. Removed GL synchronization before swapping buffers, which should be unnecessary. 2013-10-28 05:06:23 +02:00
Lasse Öörni
e74ee4ce52 Fixed exiting on Android. 2013-10-28 01:45:44 +02:00
Lasse Öörni
f299c0d815 Fixed Android GL context destroy / restore. Removed project.properties file, as it's generated by the command "android update project". 2013-10-27 14:58:41 +02:00
Yao Wei Tjong 姚伟忠
59d6d01125 Fixed 07_Billboards compilation issue. 2013-10-27 16:20:51 +08:00
Lasse Öörni
afa6c4ccc3 Initial SDL 2.0.1 merge. Windows tested OK. Android will crash when returning to the application. 2013-10-27 03:11:36 +03:00
Lasse Öörni
42ae752d2d Allow BillboardSet / ParticleEmitter to choose whether billboards should face the camera or follow the node orientation. Closes #22. 2013-10-26 23:42:08 +03:00
Lasse Öörni
1941eb991d Group Urho3D library source files in Visual Studio by subdirectory. 2013-10-26 19:50:02 +03:00
Lasse Öörni
b5fbb39cee Merge pull request #30 from szamq/master
Fixed SetMaxVelocity in ParticleEmitter
2013-10-26 08:41:16 -07:00
Paweł Mogiła
5752b58edc Fixed SetMaxVelocity in ParticleEmitter 2013-10-26 16:06:44 +02:00
Yao Wei Tjong 姚伟忠
c3242a3736 Refactor to shortcircuit if library is already found at parent scope.
Note that there is actual no need to call the module again at child scope when it is already done at parent scope.
2013-10-26 13:32:12 +08:00
Lasse Öörni
c43c8b523a Generated tangents to the models in Ogre source format. Normal mapping materials always require tangents in the model. Fixes #29. 2013-10-25 22:44:24 +03:00
Yao Wei Tjong 姚伟忠
0598ec9490 Improve robustness when FindUrho3D module is called multiple times.
Ensure the change to CMake library suffix preferences is not being nullified because user calls the FindUrho3D module more than one time in different scopes.
2013-10-26 01:38:31 +08:00
Yao Wei Tjong 姚伟忠
6846b179b4 Cleaned up comment. 2013-10-25 01:17:29 +08:00
Yao Wei Tjong 姚伟忠
589e0d53bb Change CMake library type preferences to agree with Urho3D.
This change helps external CMake project to choose the correct library type as the compiler flags setup by the Urho3D-CMake-Magic module. Both the external project and the cmake module are being governed by the same URHO3D_LIB_TYPE build option.
2013-10-25 01:01:53 +08:00
Yao Wei Tjong 姚伟忠
b85a0b3305 Suppress "unused variable" warning for external CMake project also. 2013-10-25 00:32:23 +08:00
Yao Wei Tjong 姚伟忠
ef566d825a Cleaned up build script script comment. 2013-10-25 00:08:49 +08:00
Lasse Öörni
02df5b2d02 Write package file size to the end of package files. If package signature is not found from the file beginning, seek to file end and read the size, then seek backward to check if the package file is concatenated eg. in the executable. Alternatively the start offset can be specified manually when opening a package file. Closes #27. 2013-10-24 00:06:19 +03:00
Yao Wei Tjong 姚伟忠
e34e26d068 Merge branch 'library-build'. 2013-10-23 15:15:03 +08:00
Lasse Öörni
18d4f6e6db Deploy Urho3D.dll to Bin directory after build. 2013-10-22 22:59:03 +03:00
Yao Wei Tjong 姚伟忠
a9ed330890 Create sub-projects for Samples/Tools/Extras. 2013-10-22 23:19:03 +08:00
Yao Wei Tjong 姚伟忠
db8f7a2289 Simplify the build script to eliminate unused variable.
As the enable_pch() macro is not being called, there is no need to set SOURCE_FILES variable at this scope.
2013-10-22 20:28:15 +08:00
Yao Wei Tjong 姚伟忠
7785640904 Fixed Lua/LuaJIT compilation issue.
The combined Precompiled header does not include tolua++.h anymore, so it must be included back explicitly.
2013-10-22 20:12:33 +08:00
Lasse Öörni
f39702a07e Terminology edits in the documentation. Do not refer to Graphics, Scene etc. as separate libraries anymore. 2013-10-22 00:58:58 +03:00
Lasse Öörni
0c14a17774 Use one combined precompiled header file for Urho3D library, as otherwise precompiled headers would be disabled on Visual Studio. 2013-10-22 00:48:27 +03:00
Lasse Öörni
89ea05f068 Fixed git revision generation on Win32 Android build. 2013-10-22 00:24:19 +03:00
Lasse Öörni
0eb45c0960 Fixed ShaderCompiler build. 2013-10-21 23:59:21 +03:00