pentagonVertexFormat["aPosition1"] = Property::VECTOR2;
pentagonVertexFormat["aPosition2"] = Property::VECTOR2;
pentagonVertexFormat["aColor"] = Property::VECTOR3;
- PropertyBuffer pentagonVertices = PropertyBuffer::New( pentagonVertexFormat );
+ VertexBuffer pentagonVertices = VertexBuffer::New( pentagonVertexFormat );
pentagonVertices.SetData(pentagonVertexData, 5);
*/
ExampleController( Application& application )
: mApplication( application ),
- mStageSize(),
+ mWindowSize(),
mShader(),
mGeometry(),
mRenderer(),
*/
void Create( Application& application )
{
- Stage stage = Stage::GetCurrent();
+ Window window = application.GetWindow();
// initial settings
mPrimitiveType = Geometry::LINES;
CreateRadioButtons();
- stage.KeyEventSignal().Connect(this, &ExampleController::OnKeyEvent);
+ window.KeyEventSignal().Connect(this, &ExampleController::OnKeyEvent);
- mStageSize = stage.GetSize();
+ mWindowSize = window.GetSize();
Initialise();
- // Hide the indicator bar
- application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE );
-
- stage.SetBackgroundColor(Vector4(0.0f, 0.2f, 0.2f, 1.0f));
+ window.SetBackgroundColor(Vector4(0.0f, 0.2f, 0.2f, 1.0f));
}
/**
*/
void Initialise()
{
- Stage stage = Stage::GetCurrent();
+ Window window = mApplication.GetWindow();
// destroy mesh actor and its resources if already exists
if( mMeshActor )
{
- stage.Remove( mMeshActor );
+ window.Remove( mMeshActor );
mMeshActor.Reset();
}
mMeshActor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
mMeshActor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
- stage.Add( mMeshActor );
+ window.Add( mMeshActor );
Animation animation = Animation::New(5);
KeyFrames keyFrames = KeyFrames::New();
*/
void CreateRadioButtons()
{
- Stage stage = Stage::GetCurrent();
+ Window window = mApplication.GetWindow();
Toolkit::TableView modeSelectTableView = Toolkit::TableView::New( 4, 1 );
modeSelectTableView.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
elementCountTableView.AddChild( mIndicesCountLabel, Toolkit::TableView::CellPosition( 0, 1 ) );
elementCountTableView.AddChild( mPlusButton, Toolkit::TableView::CellPosition( 0, 2 ) );
- stage.Add(modeSelectTableView);
- stage.Add(elementCountTableView);
+ window.Add(modeSelectTableView);
+ window.Add(elementCountTableView);
}
/**
void OnKeyEvent(const KeyEvent& event)
{
- if(event.state == KeyEvent::Down)
+ if(event.GetState() == KeyEvent::DOWN)
{
if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) )
{
private:
Application& mApplication; ///< Application instance
- Vector3 mStageSize; ///< The size of the stage
+ Vector3 mWindowSize; ///< The size of the window
Shader mShader;
Geometry mGeometry;