X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Fpoint-mesh%2Fpoint-mesh-example.cpp;h=e18971a2553eccd1e1600808760ffef40a8188d3;hb=f29ed9f0eacff3584e754f8478ec331f8fe5b3ce;hp=649547034f9e9dd6261f8df4ab88956613928477;hpb=6bccceebe41980e61f5d5d6956ab76b5a37653a0;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/point-mesh/point-mesh-example.cpp b/examples/point-mesh/point-mesh-example.cpp index 6495470..e18971a 100644 --- a/examples/point-mesh/point-mesh-example.cpp +++ b/examples/point-mesh/point-mesh-example.cpp @@ -98,7 +98,7 @@ Geometry CreateGeometry() Property::Map polyhedraVertexFormat; polyhedraVertexFormat["aPosition"] = Property::VECTOR2; polyhedraVertexFormat["aHue"] = Property::FLOAT; - PropertyBuffer polyhedraVertices = PropertyBuffer::New( polyhedraVertexFormat ); + VertexBuffer polyhedraVertices = VertexBuffer::New( polyhedraVertexFormat ); polyhedraVertices.SetData( polyhedraVertexData, numSides ); // Create the geometry object @@ -142,10 +142,10 @@ public: */ void Create( Application& application ) { - Stage stage = Stage::GetCurrent(); - stage.KeyEventSignal().Connect(this, &ExampleController::OnKeyEvent); + Window window = application.GetWindow(); + window.KeyEventSignal().Connect(this, &ExampleController::OnKeyEvent); - mStageSize = stage.GetSize(); + mWindowSize = window.GetSize(); // The Init signal is received once (only) during the Application lifetime @@ -175,7 +175,7 @@ public: 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(15); KeyFrames keyFrames = KeyFrames::New(); @@ -187,7 +187,7 @@ public: animation.SetLooping(true); animation.Play(); - stage.SetBackgroundColor(Vector4(0.0f, 0.2f, 0.2f, 1.0f)); + window.SetBackgroundColor(Vector4(0.0f, 0.2f, 0.2f, 1.0f)); } /** @@ -215,7 +215,7 @@ public: private: Application& mApplication; ///< Application instance - Vector3 mStageSize; ///< The size of the stage + Vector3 mWindowSize; ///< The size of the window Renderer mRenderer; Actor mMeshActor;