Commit Graph

9869 Commits

Author SHA1 Message Date
Yao Wei Tjong 姚伟忠
86641d847c Fix MSVC debug build. 2015-07-07 23:43:57 +08:00
Yao Wei Tjong 姚伟忠
9770e3dc99 Include 'Precompiled.h' to auto generated Lua binding C++ source files. 2015-07-07 23:43:56 +08:00
Yao Wei Tjong 姚伟忠
fa77a456f8 Reformat Urho3D source files to get rid of the indents on empty lines.
Reorganize includes.
Misc. fixes to perform explicit C-style cast on type mismatch.
Misc. fixes on bugs identified by CLion's static analyzer.
2015-07-07 23:43:56 +08:00
Yao Wei Tjong 姚伟忠
f0d107d3db Add new build option to support non-PCH build.
In order to achieve this, the Precompiled.h is now included back in all the Urho3D implementation source file. So, when the Precompiled.h is not being force-included in the PCH build, then the compiler is still able to find all the required symbol declarations. By doing so, it should also fix the indexer in some IDEs to index all the Urho3D declared symbols correctly whether it is a PCH build or not.
2015-07-07 23:43:56 +08:00
Lasse Öörni
d44feb37ec Ensure replace blend mode before rendering quad geometry to emulate partial rendertarget clear on D3D11. Closes #764. 2015-07-05 13:34:17 +03:00
Mike3D
84cb5abf0b Increased precision qualifiers to medium for better compatibility across mobile devices. Closes #763. 2015-07-04 12:39:30 +02:00
Lasse Öörni
d937b8fd0b Fix whitespace. 2015-07-04 13:08:35 +03:00
Lasse Öörni
8678ce11c6 Merge pull request #762 from thebluefish/master
Update OGLGraphicsImpl.h
2015-07-04 13:07:48 +03:00
thebluefish
c3d5df1ea4 Update OGLGraphicsImpl.h
Added function GetGLContext().

This allows us to switch multiple contexts like so:

    auto graphics = _context->GetSubsystem<Urho3D::Graphics>();
    auto graphicsImpl = graphics->GetImpl();
    				
    SDL_GL_MakeCurrent(graphicsImpl->GetWindow(), graphicsImpl->GetGLContext());
    _engine->RunFrame();
2015-07-03 21:46:49 -07:00
Lasse Öörni
56d1cbba1f Silence unnecessary LogicComponent warning at construction time; event subscription will be handled later when the component has access to the scene. 2015-07-03 19:03:01 +03:00
Lasse Öörni
796dfa52e3 Updated warning in documentation for creating components to out-of-scene nodes. 2015-07-02 20:24:39 +03:00
Lasse Öörni
7ac5c2d542 Fix remaining classes for OnSceneSet(). 2015-07-02 20:20:09 +03:00
Lasse Öörni
7bff2a4734 Fixes for moving a node from one scene to another. Related CollisionShape & Constraint fixes. 2015-07-02 15:17:02 +03:00
Lasse Öörni
94d53fd687 Remove obsolete remark from documentation; to be verified with e.g. physics components. 2015-07-01 23:47:30 +03:00
Lasse Öörni
52b739e2a4 Initial work to separate Component's association with its owner node and scene (OnNodeSet() and OnSceneSet()). This should allow components to work properly when moved from one scene to another, or when created initially outside a scene, and be removed from rendering & physics when removed from the scene, even if the node's refcount keeps it alive after the removal. 2015-07-01 23:45:12 +03:00
Yao Wei Tjong 姚伟忠
d29d5f188e Enable GCC/Clang support for multithreading with pthread library. 2015-06-30 23:13:43 +08:00
Lasse Öörni
4219b7b157 Revert mistaken change to 20_HugeObjectCount.as. 2015-07-24 17:11:10 +03:00
Lasse Öörni
bcd2991fa2 Make Octree::Raycast() possible to call from worker threads. This doesn't necessarily mean that it's safe to do so, unless you make sure you're not modifying the scene in the main thread at the same time. 2015-07-24 15:17:32 +03:00
Yao Wei Tjong 姚伟忠
581cb70ea1 For Travis CI - limit Coverity scanning to master branch only.
[ci skip]
2015-06-30 21:03:04 +08:00
urho3d-travis-ci
29e02e0ae8 Travis CI: API documentation update at 2015-06-30 09:45:49 UTC.
[ci package]

Commit: caf78d6178

Message: Minor typo corection on binding and code comment.
2015-06-30 09:45:49 +00:00
Yao Wei Tjong 姚伟忠
caf78d6178 Minor typo corection on binding and code comment. 2015-06-30 17:35:40 +08:00
urho3d-travis-ci
3cf39a1389 Travis CI: API documentation update at 2015-06-29 19:53:46 UTC.
[ci package]

Commit: e8af02f453

Message: Add double serialization support to Variant, Deserializer/Serializer, XMLElement & JSONValue. Use double to store a Lua object's number attributes. Add editing of double attributes to the editor. Closes #758.
2015-06-29 19:53:46 +00:00
Lasse Öörni
e8af02f453 Add double serialization support to Variant, Deserializer/Serializer, XMLElement & JSONValue. Use double to store a Lua object's number attributes. Add editing of double attributes to the editor. Closes #758. 2015-06-29 22:36:12 +03:00
Yao Wei Tjong 姚伟忠
7547b0213a Only find Direct3D package when not using OpenGL on Windows platform.
Fix #756.
2015-06-27 06:37:46 +08:00
Lasse Öörni
4306985a47 Fix uninitialized variable in DetourCrowd. Closes #753. 2015-06-26 12:26:11 +03:00
Yao Wei Tjong 姚伟忠
3052385081 Fix build tree configuration and generation under CLion IDE. 2015-06-23 16:36:47 +08:00
Lasse Öörni
afd714ac00 Make sure blend mode of existing Urho2D materials is not overwritten. Closes #742. 2015-06-18 17:16:14 +03:00
Yao Wei Tjong 姚伟忠
342db03895 For Travis CI - update rake task to use _data/about.yml for credits.
[ci skip]
2015-06-17 00:06:25 +08:00
Lasse Öörni
0e2e1d10e4 Added contributor credit. 2015-06-16 16:53:16 +03:00
Lasse Öörni
27735786da Merge remote-tracking branch 'feltech/lua-load-raw-script-files' 2015-06-16 15:34:13 +03:00
Yao Wei Tjong 姚伟忠
df31b6ad7c Fix ProcessRayQuery() method to use correct overload for RAY_TRIANGLE.
Minor formatting and code clean up.
2015-06-16 13:12:19 +08:00
David Feltell
414e92dad2 Tidied/updated Lua raw script loader CMake definition and documentation.
* Tidied CMake definition and defaulted to disabled for
multi-configuration build types.
* Added CMake variable to table in "Building Urho3D" docs page.
* Added a section on "Debugging script files" to the "Lua scripting"
docs page.
2015-06-15 23:59:38 +01:00
urho3d-travis-ci
13e854c946 Travis CI: API documentation update at 2015-06-15 21:06:30 UTC.
[ci package]

Commit: e89184b38c

Message: Rename texture_uv_ to textureUV_
2015-06-15 21:06:30 +00:00
nemerle
e89184b38c Rename texture_uv_ to textureUV_ 2015-06-15 20:15:28 +02:00
nemerle
8bad584cb4 Match project's coding conventions and expose the new functionality to angelscript and lua
Remove debugging code from Decals example.
2015-06-15 19:06:05 +02:00
nemerle
c479fd72d5 Convert back from c++11 2015-06-15 17:20:39 +02:00
nemerle
16006239c1 Add support for retrieving UV coordinates of successful Ray query.
Conflicts:
	Source/Samples/08_Decals/Decals.cpp
	Source/Urho3D/Graphics/Geometry.cpp
	Source/Urho3D/Graphics/Geometry.h
	Source/Urho3D/Graphics/OctreeQuery.h
	Source/Urho3D/Graphics/StaticModel.cpp
	Source/Urho3D/Math/Ray.cpp
	Source/Urho3D/Math/Ray.h
2015-06-15 17:05:50 +02:00
David Feltell
a8afde31b2 Fix tab indent to space indent. 2015-06-14 20:28:04 +01:00
David Feltell
67b6f0d533 Add luaL_loadfile support, with CMake option to prefer this strategy.
* Added `LuaScript::LoadRawFile` and `LuaScript::ExecuteRawFile` to load
files using `luaL_loadfile` rather than via the resource cache
(`luaL_loadbuffer`).  This strategy makes the source available to Lua
debuggers (e.g. eclipse LDT) for setting breakpoints, etc.
* Added a CMake option `URHO3D_LUA_RAW_SCRIPT_LOADER` to make
`luaL_loadfile` the default script loading strategy.
  - `LuaScript::ExecuteFile` will thus prefer the `luaL_loadfile`
strategy, aiding in debugging as above, but without needing to change
method calls.
  -  `LuaScript::Loader` will also prefer the `luaL_loadfile` strategy,
so that scripts `require`d in the main script are also amenable to
debugging.
  - If a script file cannot be loaded from the file system, then it will
fall back on the default resource cache `luaL_loadbuffer` strategy (e.g.
for packaged scripts).
2015-06-14 20:13:03 +01:00
urho3d-travis-ci
92075c6b43 Travis CI: API documentation update at 2015-06-14 12:28:34 UTC.
[ci package]

Commit: 476c4f25c8

Message: Allow GetChildrenWithClassName() in AngelScript API to return derived classes. Thanks to JSandusky for the original forum post on which the code is based.
2015-06-14 12:28:34 +00:00
Lasse Öörni
476c4f25c8 Allow GetChildrenWithClassName() in AngelScript API to return derived classes. Thanks to JSandusky for the original forum post on which the code is based. 2015-06-14 15:20:06 +03:00
Lasse Öörni
368cd56955 Fix FXAA3 shader on OpenGL 3. Add non-deprecated aliases for texture2DLod in Samplers.glsl. Thanks to Gunnar Kriik. 2015-06-14 01:55:55 +03:00
Yao Wei Tjong 姚伟忠
11ae5e0602 Another attempt to workaround #743 by keeping the preinstalled version.
[ci only: Android]
2015-06-12 19:05:16 +08:00
Yao Wei Tjong 姚伟忠
6bd02fe805 Attempt fo fix #743 by pairing latest SDK tools /w latest build tools.
[ci only: Android]
2015-06-12 17:01:46 +08:00
Yao Wei Tjong 姚伟忠
99a6ef3a68 Fix a typo. Sorry.
Related to commit 0d3de0117e.
2015-06-12 01:06:34 +08:00
Lasse Öörni
e142319eb0 Only perform animation length fixing for non-looped 2D animations. Fixes incorrect looping in animations where the start & end keyframes don't match. 2015-06-11 17:16:31 +03:00
Yao Wei Tjong 姚伟忠
62aeb13cf2 Rectify the comment in the FindDirect3D CMake module.
The purpose of the module is to find the Direct3D installation (not the DirectX itself).
[ci skip]
2015-06-11 21:14:56 +08:00
Lasse Öörni
bb17ef1570 Blit to backbuffer before debug geometry if used resolve from backbuffer to acquire the scene initially for postprocessing. Closes #741. 2015-06-11 11:45:30 +03:00
Yao Wei Tjong 姚伟忠
0d3de0117e Fix MinGW STATIC Direct3D build in a newly scaffolded project.
[ci only: master]
2015-06-11 16:12:58 +08:00
Yao Wei Tjong 姚伟忠
a7c1dae794 Minor clean up to avoid redundant code. Also copy DLL to build tree.
Related to commit 58332565ea.
2015-06-11 14:26:26 +08:00