X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Factors%2Fcamera-actor-impl.cpp;h=d637337641ab1149483e60abd7957ac767ff09fe;hb=8f612650d20752ab6aba022a9dbefdb883968e8f;hp=f73497a443bd04a10fdbe48453d15833209ef9e2;hpb=653bc983fc6fdf81d4f90b12f53fde296f820e96;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/actors/camera-actor-impl.cpp b/dali/internal/event/actors/camera-actor-impl.cpp index f73497a..d637337 100644 --- a/dali/internal/event/actors/camera-actor-impl.cpp +++ b/dali/internal/event/actors/camera-actor-impl.cpp @@ -153,7 +153,7 @@ CameraActorPtr CameraActor::New( const Size& size ) CameraActor::CameraActor( const SceneGraph::Node& node ) : Actor( Actor::BASIC, node ), - mSceneObject( NULL ), + mSceneObject( nullptr ), mTarget( SceneGraph::Camera::DEFAULT_TARGET_POSITION ), mType( SceneGraph::Camera::DEFAULT_TYPE ), mProjectionMode( SceneGraph::Camera::DEFAULT_MODE ), @@ -524,6 +524,12 @@ const SceneGraph::Camera* CameraActor::GetCamera() const return mSceneObject; } +void CameraActor::RotateProjection( int rotationAngle ) +{ + // sceneObject is being used in a separate thread; queue a message to set + RotateProjectionMessage( GetEventThreadServices(), *mSceneObject, rotationAngle ); +} + void CameraActor::SetDefaultProperty( Property::Index index, const Property::Value& propertyValue ) { if(index < DEFAULT_ACTOR_PROPERTY_MAX_COUNT) @@ -754,7 +760,7 @@ Property::Value CameraActor::GetDefaultPropertyCurrentValue( Property::Index ind const PropertyInputImpl* CameraActor::GetSceneObjectInputProperty( Property::Index index ) const { - const PropertyInputImpl* property( NULL ); + const PropertyInputImpl* property( nullptr ); switch( index ) {