summaryrefslogtreecommitdiffstats
path: root/src/dm/systems/Qt3DSDMComposerTypeDefinitions.cpp
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@qt.io>2019-08-26 13:39:45 +0200
committerAndy Nichols <andy.nichols@qt.io>2019-08-29 07:51:48 +0200
commit9ea345e6372433217915a45b73acb81a81627bde (patch)
tree74e67716130df22dd9ecd7dad5722c272cdaf146 /src/dm/systems/Qt3DSDMComposerTypeDefinitions.cpp
parent0cce5a54b0f9971021fc0bd0c11198fbe7845ee8 (diff)
Add property to Camera to enable frustum culling when needed
By default frustum culling is disabled because for most scenes all items are always visible. There is a not insignificant cost to doing frustum culling, so it shouldn't be the default behavior. Change-Id: Ibc0c0a4bd1cf65a215256de9ec22ca1d97eb6de5 Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/dm/systems/Qt3DSDMComposerTypeDefinitions.cpp')
-rw-r--r--src/dm/systems/Qt3DSDMComposerTypeDefinitions.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dm/systems/Qt3DSDMComposerTypeDefinitions.cpp b/src/dm/systems/Qt3DSDMComposerTypeDefinitions.cpp
index 2bd8941..7aee9b5 100644
--- a/src/dm/systems/Qt3DSDMComposerTypeDefinitions.cpp
+++ b/src/dm/systems/Qt3DSDMComposerTypeDefinitions.cpp
@@ -207,6 +207,7 @@ struct DataConstructor<SObjectRefType>
#define QT3DS_WCHAR_T_shdwmapfov L"shdwmapfov"
#define QT3DS_WCHAR_T_shdwfilter L"shdwfilter"
#define QT3DS_WCHAR_T_orthographic L"orthographic"
+#define QT3DS_WCHAR_T_enablefrustumculling L"enablefrustumculling"
#define QT3DS_WCHAR_T_fov L"fov"
#define QT3DS_WCHAR_T_fovhorizontal L"fovhorizontal"
#define QT3DS_WCHAR_T_clipnear L"clipnear"