-#ifndef __DALI_INTERNAL_STAGE_H__
-#define __DALI_INTERNAL_STAGE_H__
+#ifndef DALI_INTERNAL_STAGE_H
+#define DALI_INTERNAL_STAGE_H
/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
// INTERNAL INCLUDES
-#include <dali/public-api/object/ref-object.h>
#include <dali/public-api/common/stage.h>
-#include <dali/devel-api/common/stage-devel.h>
+#include <dali/public-api/object/ref-object.h>
#include <dali/public-api/object/base-object.h>
+#include <dali/public-api/math/vector2.h>
+#include <dali/public-api/math/vector3.h>
+#include <dali/public-api/math/vector4.h>
+#include <dali/devel-api/common/stage-devel.h>
#include <dali/integration-api/context-notifier.h>
#include <dali/internal/common/owner-pointer.h>
#include <dali/internal/event/actors/layer-impl.h>
#include <dali/internal/event/common/stage-def.h>
#include <dali/internal/event/render-tasks/render-task-defaults.h>
#include <dali/internal/update/manager/update-manager.h>
-#include <dali/public-api/common/view-mode.h>
-#include <dali/public-api/math/vector2.h>
-#include <dali/public-api/math/vector3.h>
-#include <dali/public-api/math/vector4.h>
-#include <dali/public-api/render-tasks/render-task.h>
+#include <dali/internal/event/render-tasks/render-task-impl.h>
namespace Dali
{
/**
* Initialize the stage.
+ * @param[in] renderToFbo Whether to render into a Frame Buffer Object.
*/
- void Initialize();
+ void Initialize( bool renderToFbo );
/**
* Uninitialize the stage.
* initial size is zero before it is assigned
* @param[in] margin margin size
*/
- void SetTopMargin( unsigned int margin );
+ void SetTopMargin( uint32_t margin );
/**
* Returns the size of the Stage in pixels as a Vector.
/**
* @copydoc Dali::Stage::GetLayerCount()
*/
- unsigned int GetLayerCount() const;
+ uint32_t GetLayerCount() const;
/**
* @copydoc Dali::Stage::GetLayer()
*/
- Dali::Layer GetLayer( unsigned int depth ) const;
+ Dali::Layer GetLayer( uint32_t depth ) const;
/**
* @copydoc Dali::Stage::GetRootLayer()
*/
SystemOverlay* GetSystemOverlayInternal();
- // Stereoscopy
-
- /**
- * @copydoc Dali::Integration::Core::SetViewMode()
- */
- void SetViewMode( ViewMode viewMode );
-
- /**
- * @copydoc Dali::Integration::Core::GetViewMode()
- */
- ViewMode GetViewMode() const;
-
- /**
- * @copydoc Dali::Integration::Core::SetStereoBase()
- */
- void SetStereoBase( float stereoBase );
-
- /**
- * @copydoc Dali::Integration::Core::GetStereoBase()
- */
- float GetStereoBase() const;
-
// Keyboard stuff
/**
void KeepRendering( float durationSeconds );
/**
+ * @copydoc Dali::DevelStage::SetRenderingBehavior()
+ */
+ void SetRenderingBehavior( DevelStage::Rendering renderingBehavior );
+
+ /**
+ * @copydoc Dali::DevelStage::GetRenderingBehavior()
+ */
+ DevelStage::Rendering GetRenderingBehavior() const;
+
+ /**
* Used by the EventProcessor to emit key event signals.
* @param[in] event The key event.
*/
Dali::DevelStage::KeyEventGeneratedSignalType& KeyEventGeneratedSignal();
/**
+ * @copydoc Dali::DevelStage::AddFrameCallback()
+ */
+ void AddFrameCallback( FrameCallbackInterface& frameCallback, Actor& rootActor );
+
+ /**
+ * @copydoc Dali::DevelStage::RemoveFrameCallback()
+ */
+ void RemoveFrameCallback( FrameCallbackInterface& frameCallback );
+
+ /**
* Connects a callback function with the object's signals.
* @param[in] object The object providing the signal.
* @param[in] tracker Used to disconnect the signal.
/**
* @copydoc EventThreadServices::ReserveMessageSlot
*/
- virtual unsigned int* ReserveMessageSlot( std::size_t size, bool updateScene );
+ virtual uint32_t* ReserveMessageSlot( uint32_t size, bool updateScene );
/**
* @copydoc EventThreadServices::GetEventBufferIndex
IntrusivePtr<CameraActor> mDefaultCamera;
- ViewMode mViewMode;
- float mStereoBase;
-
- unsigned int mTopMargin;
+ uint32_t mTopMargin;
Vector2 mDpi;
// The object registry
// The list of render-tasks
IntrusivePtr<RenderTaskList> mRenderTaskList;
- Dali::RenderTask mRightRenderTask;
- IntrusivePtr<CameraActor> mRightCamera;
- Dali::RenderTask mLeftRenderTask;
- IntrusivePtr<CameraActor> mLeftCamera;
-
Integration::SystemOverlay* mSystemOverlay; ///< SystemOverlay stage access
- bool mDepthTreeDirty; ///< True if the depth tree needs recalculating
- bool mForceNextUpdate; ///< True if the next rendering is really required.
-
// The key event signal
Dali::Stage::KeyEventSignalType mKeyEventSignal;
Dali::DevelStage::KeyEventGeneratedSignalType mKeyEventGeneratedSignal;
Dali::Stage::ContextStatusSignal mContextRegainedSignal;
Dali::Stage::SceneCreatedSignalType mSceneCreatedSignal;
+
+ DevelStage::Rendering mRenderingBehavior; ///< The rendering behavior
+
+ bool mDepthTreeDirty:1; ///< True if the depth tree needs recalculating
+ bool mForceNextUpdate:1; ///< True if the next rendering is really required.
+ bool mRenderToFbo:1; ///< Whether to render to a Frame Buffer Object.
};
} // namespace Internal
} // namespace Dali
-#endif // __DALI_INTERNAL_STAGE_H__
+#endif // DALI_INTERNAL_STAGE_H