Commit Graph

9612 Commits

Author SHA1 Message Date
Lasse Öörni
2c2c6d26b1 Merge branch 'api-agnostic-headers' 2016-07-06 13:51:17 +03:00
Lasse Öörni
28ad5d5dbd Fix ambiguous operations when C++11 Urho3D features are enabled by using WeakPtr default constructor instead. 2016-07-06 01:39:28 +03:00
Eugene Kozlov
c4424eb514 Make Vector::Buffer() and PODVector::Buffer() public. 2016-07-05 23:01:16 +03:00
Eugene Kozlov
7546a47497 Add initializer list constructor for PODVector. 2016-07-05 23:01:16 +03:00
Eugene Kozlov
5be488233a Add constructors from nullptr for SharedPtr and WeakPtr. 2016-07-05 23:01:16 +03:00
Lasse Öörni
46db9d1e07 Fix mip chain not being complete to 1x1, which could result in black textures on GLES2. 2016-07-05 14:50:20 +03:00
aster2013
270eabd226 Fix #1456. 2016-07-05 15:51:09 +08:00
urho3d-travis-ci
f99577523d Travis CI: API documentation update at 2016-07-04 23:28:16 UTC.
[ci package]

Commit: 03c95a1519

Message: Add contributor credit & minor edit.
2016-07-04 23:28:16 +00:00
Lasse Öörni
03c95a1519 Add contributor credit & minor edit. 2016-07-05 02:01:33 +03:00
Lasse Öörni
c611d4a069 Merge remote-tracking branch 'fredakilla/box2d' 2016-07-05 01:54:25 +03:00
Lasse Öörni
df2f7b06a0 When Button sends the Released event, make sure it's yet hovering if the mouse was released on top of it. See issue #1453. 2016-07-04 22:50:40 +03:00
fredakilla
39344c41fe Add b2Contact ptr to E_PHYSICSBEGINCONTACT2D and E_PHYSICSENDCONTACT2D events 2016-07-04 21:47:36 +02:00
Lasse Öörni
ecd3ab2f45 When an autolocalized Text is saved, make sure the stringId is saved instead of the localized text. Make sure the text gets localized even if autoLocalizable & text attributes are in swapped order in the UI xml. Fix Text3D attributes being AM_FILE mode instead of AM_DEFAULT for net replication. Closes #1451. 2016-07-04 20:49:09 +03:00
Lasse Öörni
4e198c2412 Fix wrong return value in HashMap Front() & Back(). 2016-07-04 18:33:38 +03:00
Lasse Öörni
fd5bac385a Since the SDL window is not API-specific, move it into Graphics from GraphicsImpl to simplify code. 2016-07-01 10:17:29 +03:00
Lasse Öörni
eb104906aa Remove API-specific Graphics class headers and code duplication. Closes #1422. 2016-07-01 09:38:39 +03:00
Yao Wei Tjong 姚伟忠
fb881c3360 Use CMake to auto-detect and define _TIMESPEC_DEFINED as necessary. 2016-06-30 21:01:41 +08:00
Lasse Öörni
bdce4b3dba Move API-specific Graphics class member variables to GraphicsImpl. Rename WindowMoved & WindowResized to OnWindow.. to match convention used elsewhere (eg. OnNodeSet) Change windowIcon_ member to WeakPtr to ensure safety in later access. Minor class comment fixes. 2016-06-30 02:11:19 +03:00
Lasse Öörni
e444e50175 Merge pull request #1445 from TheComet93/iss1444
fixes #1444
2016-06-29 23:18:33 +03:00
TheComet
7031ae8799 fixes #1444 2016-06-29 19:18:14 +02:00
Lasse Öörni
51b0a16f9a Remove API-specific RenderSurface class headers and RenderSurface code duplication. 2016-06-27 22:42:02 +03:00
Lasse Öörni
46b9a90fb1 Remove API-specific Texture subclass headers and code duplication for loading & SetSize(). 2016-06-26 23:26:14 +03:00
Lasse Öörni
26342ce69e Remove code duplication from checking max. mip levels on OpenGL. 2016-06-26 21:12:20 +03:00
Lasse Öörni
f452a16f2d Initial Texture class refactoring. Get rid of API-specific Texture header. 2016-06-26 20:35:51 +03:00
Lasse Öörni
11b1e2cc2d Shadow batches don't need a zone, since they shouldn't use ambient color or fogging settings. This also fixes a bug with erroneous fog settings when OpenGL constant buffers are used. 2016-06-25 19:52:17 +03:00
Lasse Öörni
6c77b75813 Cleanup ShaderParameter related code. 2016-06-25 17:58:37 +03:00
Lasse Öörni
f8d636426c Make ShaderVariation class header API-agnostic. 2016-06-25 16:00:44 +03:00
Lasse Öörni
9b51baa445 Separate ConstantBuffer to API-independent and -specific implementations, and unify the header. Add dummy D3D9 constant buffer implementation (that only logs error if used) so that user will not get link errors if attempting to use. 2016-06-24 20:50:05 +03:00
Lasse Öörni
6775038a44 Eliminate more duplication of API-independent index / vertex buffer code. 2016-06-24 15:15:02 +03:00
Lasse Öörni
db7f3bb56a Fix dynamic flag not being set for D3D9 vertex buffer. 2016-06-24 14:56:12 +03:00
Lasse Öörni
51b026f33d Unify IndexBuffer & VertexBuffer headers for all APIs. Move API-independent parts of vertex / index buffers to their own implementation files to eliminate code duplication. 2016-06-24 14:30:55 +03:00
Lasse Öörni
1ba87dae4c Get rid of API-specific GPUObject class header & implementation. 2016-06-24 02:17:06 +03:00
Yao Wei Tjong 姚伟忠
35a616448a Merge commit 'a1a9ce7817286783347acfbcce94bfd659915b66' into master. 2016-06-23 22:05:25 +08:00
Yao Wei Tjong 姚伟忠
a1a9ce7817 Squashed 'Source/ThirdParty/SDL/' changes from 707b945..a901827
a901827 Cherry-pick commits containing Mir and Wayland bug fixes.
42906b1 Fix cross-compiling builds using X11 shared libraries.
8bf5499 For CI - attempt to fix broken multiarch support in older CMake. This should be a non-issue when we have migrated to CMake 3.2.3 (now under development in refactor-buildsystem branch).
05b669a Fix cross-compiling builds using readline shared library.
bc7faa3 Reduce direct exposure to SDL headers as much as possible.
0202a35 Mark the SDL source code changes to comply with its license.
1c7c765 Fix memory leak in SDL library.
bcfa945 Quick fix to suppress confusing output msgs from SDL's CMakeLists.txt. [ci skip]
e674a2d Attempt to fix SDL OpenGLES auto-detection for Emscripten on Windows.
70d7782 Misc. bug fixes and refactoring in configuring SDL library build. - Fix the regex to get the shared library soname correctly. - Use the GCC_ATOMIC and CLOCK_GETTIME whenever they are available. - Reorganize the if-else block in the SDL CMakeLists.txt to prevent Unix-like platforms (e.g. Android) from entering the block meant for genuine Unix/Linux. - and more.
39b0d93 Disable the in_title_click data & focus_click_pending tests for SDL windows mouse warp, as it seems to lead into issues when regaining focus. Closes #1258.
9e4599a Applied patch to fix undefined reference error when compiling for Wayland on Linux.
8bb4927 Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on iOS platform.
8111296 Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on Web platform.
c0843ff Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on Windows platform.
97b13a3 Set CMake minimum version to 3.2.3 for Windows platform. This is in preparation to use optional components feature of find_package() command for FindDirectX.cmake module (was FindDirect3D).
c2b276b Refactor the CPU instruction extensions detection mechanism. Fix SDL build on the latest Raspbian Jessie release.
c6e37b0 Fix all the cross-compiling builds due to bugs in SDL CMakeLists.txt. Fix SDL library build on Linux, Android, and RPI platforms.
ad600cb Integrate SDL's original CMakeLists.txt into Urho3D build system. Close #1046. Close #1123. Close #1172.
6f8be44 Utilize new SDLActivity's get arguments feature.

git-subtree-dir: Source/ThirdParty/SDL
git-subtree-split: a9018279076a85c41db22a2cc52c27694c6b67cc
2016-06-23 22:05:24 +08:00
Yao Wei Tjong 姚伟忠
993e82f9ec Fix cross-compiling builds using X11 shared libraries. 2016-06-23 20:08:34 +08:00
urho3d-travis-ci
c88891fa6f Travis CI: API documentation update at 2016-06-23 12:02:08 UTC.
[ci package]

Commit: e8559b316a

Message: Add events for node/component being cloned. These are sent by their owning scene after the cloning process (along with all attributes set) is complete.
2016-06-23 12:02:08 +00:00
Lasse Öörni
e8559b316a Add events for node/component being cloned. These are sent by their owning scene after the cloning process (along with all attributes set) is complete. 2016-06-23 14:52:06 +03:00
Yao Wei Tjong 姚伟忠
2f4ed29be8 For CI - attempt to fix broken multiarch support in older CMake.
This should be a non-issue when we have migrated to CMake 3.2.3 (now under development in refactor-buildsystem branch).
2016-06-23 00:23:12 +08:00
Yao Wei Tjong 姚伟忠
fff8b782b1 Fix cross-compiling builds using readline shared library. 2016-06-22 18:06:21 +08:00
Lasse Öörni
489356a29f Cleanup editor debug icon code to not do constant resizes of billboardsets to zero and back, and to use fixed screen size mode to eliminate need for manual sizing. BillboardSet::SetNumBillboards() is no-op if count remains same. Fix BillboardSet fixed size bug when changing between ortho & perspective camera. Do not care to resize scratch buffer smaller if it's below 1MB. Add scratch buffer debug messages also to OpenGL Graphics class for consistency. Closes #1434. 2016-06-21 22:19:42 +03:00
urho3d-travis-ci
618fd25691 Travis CI: API documentation update at 2016-06-21 16:05:19 UTC.
[ci package]

Commit: 4279990ea8

Message: Minor fixes. Add script bindings and documentation for the new renderpath command.
2016-06-21 16:05:19 +00:00
Lasse Öörni
4279990ea8 Minor fixes. Add script bindings and documentation for the new renderpath command. 2016-06-21 18:54:57 +03:00
Lasse Öörni
3a0488fec1 Merge remote-tracking branch 'OldSnake22/master' 2016-06-21 18:10:51 +03:00
Franck Poulain
332fe215f6 SendEvent new renderpath command 2016-06-21 14:15:53 +02:00
Lasse Öörni
1f3c4ddbc4 Added contributor credit. 2016-06-21 11:47:07 +03:00
Franck Poulain
bcac85a0ac Tabs to spaces 2016-06-20 14:12:44 +02:00
Franck Poulain
f0775adfbc Change View::FindNamedTexture() function to be public 2016-06-20 14:10:18 +02:00
Yao Wei Tjong 姚伟忠
157e55ec44 Minor documentation update on optional Linux prerequisite packages. 2016-06-17 15:00:26 +08:00
urho3d-travis-ci
9f90bdd571 Travis CI: API documentation update at 2016-06-16 18:56:49 UTC.
[ci package]

Commit: dc74d3dbc0

Message: Remove commented out lines, add MarkNetworkUpdate() to SetUpdateInvisible().
2016-06-16 18:56:49 +00:00
Lasse Öörni
dc74d3dbc0 Remove commented out lines, add MarkNetworkUpdate() to SetUpdateInvisible(). 2016-06-16 21:47:28 +03:00