Updates following rename of PropertyBuffer 92/242292/1
authorDavid Steele <david.steele@samsung.com>
Tue, 25 Aug 2020 10:42:06 +0000 (11:42 +0100)
committerDavid Steele <david.steele@samsung.com>
Tue, 25 Aug 2020 10:42:06 +0000 (11:42 +0100)
Change-Id: I33cebb3f17db6a72385c7e63aaf32685ee8748b2

27 files changed:
examples/animated-shapes/animated-shapes-example.cpp
examples/bezier-curve/bezier-curve-example.cpp
examples/contact-cards/clipped-image.cpp
examples/deferred-shading/deferred-shading.cpp
examples/fpp-game/game-model.cpp
examples/fpp-game/game-model.h
examples/line-mesh/line-mesh-example.cpp
examples/mesh-morph/mesh-morph-example.cpp
examples/metaball-explosion/metaball-explosion-example.cpp
examples/metaball-refrac/metaball-refrac-example.cpp
examples/point-mesh/point-mesh-example.cpp
examples/ray-marching/ray-marching-example.cpp
examples/reflection-demo/reflection-example.cpp
examples/refraction-effect/refraction-effect-example.cpp
examples/renderer-stencil/renderer-stencil-example.cpp
examples/rendering-basic-light/rendering-basic-light-example.cpp
examples/rendering-basic-pbr/model-skybox.cpp
examples/rendering-basic-pbr/obj-loader.cpp
examples/rendering-cube/rendering-cube.cpp
examples/rendering-line/rendering-line.cpp
examples/rendering-radial-progress/radial-progress.cpp
examples/rendering-skybox/rendering-skybox.cpp
examples/rendering-textured-cube/rendering-textured-cube.cpp
examples/rendering-triangle/rendering-triangle.cpp
examples/simple-text-renderer/simple-text-renderer-example.cpp
examples/sparkle/sparkle-effect-example.cpp
shared/utility.h

index 59871eff2f9c2c0e7b75541b7376af3586e6627b..b139a750145fa401e70f4443306f5fc8e3b00326 100644 (file)
@@ -195,7 +195,7 @@ public:
     //Create a vertex buffer for vertex positions and texture coordinates
     Dali::Property::Map vertexFormat;
     vertexFormat["aCoefficient"] = Dali::Property::VECTOR3;
-    Dali::PropertyBuffer vertexBuffer = Dali::PropertyBuffer::New( vertexFormat );
+    Dali::VertexBuffer vertexBuffer = Dali::VertexBuffer::New( vertexFormat );
     vertexBuffer.SetData( vertexData, sizeof(vertexData)/sizeof(vertexData[0]));
 
     //Create the geometry
@@ -287,7 +287,7 @@ public:
     //Create a vertex buffer for vertex positions and texture coordinates
     Dali::Property::Map vertexFormat;
     vertexFormat["aCoefficient"] = Dali::Property::VECTOR3;
-    Dali::PropertyBuffer vertexBuffer = Dali::PropertyBuffer::New( vertexFormat );
+    Dali::VertexBuffer vertexBuffer = Dali::VertexBuffer::New( vertexFormat );
     vertexBuffer.SetData( vertexData, sizeof(vertexData)/sizeof(vertexData[0]));
 
     //Create the geometry
@@ -388,7 +388,7 @@ public:
     //Create a vertex buffer for vertex positions and texture coordinates
     Dali::Property::Map vertexFormat;
     vertexFormat["aCoefficient"] = Dali::Property::VECTOR3;
-    Dali::PropertyBuffer vertexBuffer = Dali::PropertyBuffer::New( vertexFormat );
+    Dali::VertexBuffer vertexBuffer = Dali::VertexBuffer::New( vertexFormat );
     vertexBuffer.SetData( vertexData, sizeof(vertexData)/sizeof(vertexData[0]));
 
     //Create the geometry
index 677152e6a1850122496b82ac7224e75edc1f5f12..c12abd1c5a3871c73f61e673f117da8a672f58f6 100644 (file)
@@ -300,7 +300,7 @@ public:
 
     Property::Map curveVertexFormat;
     curveVertexFormat["aPosition"] = Property::VECTOR2;
-    mCurveVertices = PropertyBuffer::New( curveVertexFormat );
+    mCurveVertices = VertexBuffer::New( curveVertexFormat );
     Vector2 vertexData[2] = { Vector2(-0.5f, 0.5f), Vector2( 0.5f, -0.5f ) };
     mCurveVertices.SetData( vertexData, 2 );
 
@@ -334,7 +334,7 @@ public:
     return actor;
   }
 
-  Actor CreateControlLine( PropertyBuffer vertexBuffer )
+  Actor CreateControlLine( VertexBuffer vertexBuffer )
   {
     Actor line = Actor::New();
     line.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
@@ -364,8 +364,8 @@ public:
 
     Property::Map lineVertexFormat;
     lineVertexFormat["aPosition"] = Property::VECTOR2;
-    mLine1Vertices = PropertyBuffer::New( lineVertexFormat );
-    mLine2Vertices = PropertyBuffer::New( lineVertexFormat );
+    mLine1Vertices = VertexBuffer::New( lineVertexFormat );
+    mLine2Vertices = VertexBuffer::New( lineVertexFormat );
 
     mControlLine1 = CreateControlLine( mLine1Vertices );
     mControlLine2 = CreateControlLine( mLine2Vertices );
@@ -595,9 +595,9 @@ private:
   Timer mTimer;
   Animation mDragAnimation;
   Animation mBezierAnimation;
-  PropertyBuffer mCurveVertices;
-  PropertyBuffer mLine1Vertices;
-  PropertyBuffer mLine2Vertices;
+  VertexBuffer mCurveVertices;
+  VertexBuffer mLine1Vertices;
+  VertexBuffer mLine2Vertices;
   Vector2 mRelativeDragPoint;
   Vector2 mLastControlPointPosition1;
   Vector2 mLastControlPointPosition2;
index a4adbd338b96b7999797b0046d774fca00d42c19..fad71e004d1c5eddd8cf1cd33c0f646635065d53 100644 (file)
@@ -131,7 +131,7 @@ Geometry& CreateGeometry()
 
     Property::Map circleVertexFormat;
     circleVertexFormat["aPositionCircle"] = Property::VECTOR2;
-    PropertyBuffer circleVertices = PropertyBuffer::New( circleVertexFormat );
+    VertexBuffer circleVertices = VertexBuffer::New( circleVertexFormat );
     circleVertices.SetData( circleBuffer, vertexCount );
 
     // Create the Quad Geometry
@@ -176,7 +176,7 @@ Geometry& CreateGeometry()
 
     Property::Map vertexFormat;
     vertexFormat["aPositionQuad"] = Property::VECTOR2;
-    PropertyBuffer quadVertices2 = PropertyBuffer::New( vertexFormat );
+    VertexBuffer quadVertices2 = VertexBuffer::New( vertexFormat );
     quadVertices2.SetData( quadBuffer, vertexCount );
 
     // Create the geometry object itself
index 8e8324adef7235e97926b78afca9be4ca0cf11f1..a06f3f1ac3ac0a9592171a186729c38fabf41f51 100644 (file)
@@ -64,7 +64,7 @@ in vec3 aNormal;
 out vec4 vPosition;
 out vec3 vNormal;
 
-vec4 Map(vec4 v)       // projection space -> texture
+vec4 Map(vec4 v)    // projection space -> texture
 {
   return vec4(v.xyz / (2.f * v.w) + vec3(.5f), (v.w - NEAR) * INV_DEPTH);
 }
@@ -149,7 +149,7 @@ uniform vec3 uDepth_InvDepth_Near;\n)
 // Light source uniforms
 struct Light
 {
-  vec3 position;       // view space
+  vec3 position;    // view space
   float radius;
   vec3 color;
 };
@@ -160,7 +160,7 @@ in vec2 vUv;
 
 out vec4 oColor;
 
-vec4 Unmap(vec4 m)     // texture -> projection
+vec4 Unmap(vec4 m)  // texture -> projection
 {
   m.w = m.w * DEPTH + NEAR;
   m.xyz = (m.xyz - vec3(.5)) * (2.f * m.w);
@@ -180,10 +180,10 @@ vec3 CalculateLighting(vec3 pos, vec3 normal)
     rel /= distance;
 
     float a = uLights[i].radius / (kAttenuationConst + kAttenuationLinear * distance +
-      kAttenuationQuadratic * distance * distance);    // attenuation
+      kAttenuationQuadratic * distance * distance);     // attenuation
 
-    float l = max(0.f, dot(normal, rel));      // lambertian
-    float s = pow(max(0.f, dot(viewDirRefl, rel)), 256.f);     // specular
+    float l = max(0.f, dot(normal, rel));   // lambertian
+    float s = pow(max(0.f, dot(viewDirRefl, rel)), 256.f);  // specular
 
     light += (uLights[i].color * (l + s)) * a;
   }
@@ -324,7 +324,7 @@ Geometry CreateTexturedQuadGeometry(bool flipV)
     std::swap(vertexData[1].aTexCoord, vertexData[3].aTexCoord);
   }
 
-  PropertyBuffer vertexBuffer = PropertyBuffer::New( Property::Map()
+  VertexBuffer vertexBuffer = VertexBuffer::New( Property::Map()
     .Add( "aPosition", Property::VECTOR3 )
     .Add( "aTexCoord", Property::VECTOR2 ) );
   vertexBuffer.SetData( vertexData, std::extent<decltype(vertexData)>::value );
@@ -402,7 +402,7 @@ Geometry CreateOctahedron(bool invertNormals)
   }
 
   // Configure property buffers and create geometry.
-  PropertyBuffer vertexBuffer = PropertyBuffer::New(Property::Map()
+  VertexBuffer vertexBuffer = VertexBuffer::New(Property::Map()
     .Add("aPosition", Property::VECTOR3)
     .Add("aNormal", Property::VECTOR3));
   vertexBuffer.SetData(vertexData, std::extent<decltype(vertexData)>::value);
index 3e6a585120871a12bfe141694c9738cfcd9e3976..24bfb1c2c616e92d0d65e37d7eacb353e6e1e9dd 100644 (file)
@@ -45,11 +45,11 @@ GameModel::GameModel( const char *filename )
     mHeader = *(reinterpret_cast<ModelHeader*>( bytes.data() + bytes.size()/2 ));
   }
 
-  mVertexBuffer = Dali::PropertyBuffer::New( Dali::Property::Map().
-                                             Add( "aPosition", Dali::Property::VECTOR3 ).
-                                             Add( "aNormal", Dali::Property::VECTOR3 ).
-                                             Add( "aTexCoord", Dali::Property::VECTOR2 )
-                                             );
+  mVertexBuffer = Dali::VertexBuffer::New( Dali::Property::Map().
+                                           Add( "aPosition", Dali::Property::VECTOR3 ).
+                                           Add( "aNormal", Dali::Property::VECTOR3 ).
+                                           Add( "aTexCoord", Dali::Property::VECTOR2 )
+                                           );
 
   mVertexBuffer.SetData( bytes.data() + mHeader.dataBeginOffset, mHeader.vertexBufferSize/mHeader.vertexStride );
 
index 0c38e0abcdbc6c81003bf1006b5f8fd688fdee17..af72750e124548368fb88ccc599f48adf0660b3a 100644 (file)
@@ -19,7 +19,7 @@
  */
 
 #include <dali/public-api/rendering/geometry.h>
-#include <dali/public-api/rendering/property-buffer.h>
+#include <dali/public-api/rendering/vertex-buffer.h>
 
 #include <inttypes.h>
 
@@ -44,7 +44,7 @@ struct ModelHeader
 /**
  * @brief The GameModel class
  * GameModel represents model geometry. It loads model data from external model file ( .mod file ).
- * Such data is ready to be used as GL buffer so it can be copied directly into the PropertyBuffer
+ * Such data is ready to be used as GL buffer so it can be copied directly into the VertexBuffer
  * object.
  *
  * Model file is multi-architecture so can be loaded on little and big endian architectures
@@ -85,7 +85,7 @@ public:
 private:
 
   Dali::Geometry        mGeometry;
-  Dali::PropertyBuffer  mVertexBuffer;
+  Dali::VertexBuffer    mVertexBuffer;
 
   ModelHeader           mHeader;
 
index ff3aace3e713adfe740a36cb3a0504c25e3affbd..a088797f72c2bb0e4f00e98637256aa50fe92d0f 100644 (file)
@@ -95,7 +95,7 @@ Geometry CreateGeometry()
   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);
 
 
index af8662c3612d3ac2cde49ecdcee3fc7ac251d644..35bbc399dcccd8451fdee7c9ea1094009468fb5c 100644 (file)
@@ -218,17 +218,17 @@ Geometry CreateGeometry()
 
   Property::Map initialPositionVertexFormat;
   initialPositionVertexFormat["aInitPos"] = Property::VECTOR2;
-  PropertyBuffer initialPositionVertices = PropertyBuffer::New( initialPositionVertexFormat );
+  VertexBuffer initialPositionVertices = VertexBuffer::New( initialPositionVertexFormat );
   initialPositionVertices.SetData( quad, numberOfVertices );
 
   Property::Map finalPositionVertexFormat;
   finalPositionVertexFormat["aFinalPos"] = Property::VECTOR2;
-  PropertyBuffer finalPositionVertices = PropertyBuffer::New( finalPositionVertexFormat );
+  VertexBuffer finalPositionVertices = VertexBuffer::New( finalPositionVertexFormat );
   finalPositionVertices.SetData( cat, numberOfVertices );
 
   Property::Map colorVertexFormat;
   colorVertexFormat["aColor"] = Property::VECTOR3;
-  PropertyBuffer colorVertices = PropertyBuffer::New( colorVertexFormat );
+  VertexBuffer colorVertices = VertexBuffer::New( colorVertexFormat );
   colorVertices.SetData( colors, numberOfVertices );
 
   // Create the geometry object
index 0eae70bc293982dc34e568cc8ff0334858c04d8c..4547dada14eb917237218b69e1d99d02ddfa1ac9 100644 (file)
@@ -400,13 +400,13 @@ Geometry MetaballExplosionController::CreateGeometry( bool aspectMappedTexture )
   // Vertices
   Property::Map positionVertexFormat;
   positionVertexFormat["aPosition"] = Property::VECTOR2;
-  PropertyBuffer positionVertices = PropertyBuffer::New( positionVertexFormat );
+  VertexBuffer positionVertices = VertexBuffer::New( positionVertexFormat );
   positionVertices.SetData( vertices, numberOfVertices );
 
   // Textures
   Property::Map textureVertexFormat;
   textureVertexFormat["aTexture"] = Property::VECTOR2;
-  PropertyBuffer textureVertices = PropertyBuffer::New( textureVertexFormat );
+  VertexBuffer textureVertices = VertexBuffer::New( textureVertexFormat );
   textureVertices.SetData( textures, numberOfVertices );
 
   // Indices
index e66ecdea2a4b1d166b66d8353f23e7d02fbdcf41..43cd96328d088eb82a1282149c948b30bf147488 100644 (file)
@@ -374,13 +374,13 @@ Geometry MetaballRefracController::CreateGeometry( bool aspectMappedTexture )
   // Vertices
   Property::Map positionVertexFormat;
   positionVertexFormat["aPosition"] = Property::VECTOR2;
-  PropertyBuffer positionVertices = PropertyBuffer::New( positionVertexFormat );
+  VertexBuffer positionVertices = VertexBuffer::New( positionVertexFormat );
   positionVertices.SetData( vertices, numberOfVertices );
 
   // Textures
   Property::Map textureVertexFormat;
   textureVertexFormat["aTexture"] = Property::VECTOR2;
-  PropertyBuffer textureVertices = PropertyBuffer::New( textureVertexFormat );
+  VertexBuffer textureVertices = VertexBuffer::New( textureVertexFormat );
   textureVertices.SetData( textures, numberOfVertices );
 
   // Indices
index 312a07b168bc61f70acbd0e09fba31999ff011e3..e18971a2553eccd1e1600808760ffef40a8188d3 100644 (file)
@@ -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
index 0660bec212521046170f7a9224436b60e8a4fab6..551d824bd0f9d6adc8813c96a32c01a227158437 100644 (file)
@@ -168,7 +168,7 @@ public:
 
     Property::Map vertexFormat;
     vertexFormat["aPosition"] = Property::VECTOR2;
-    PropertyBuffer vertexBuffer = PropertyBuffer::New( vertexFormat );
+    VertexBuffer vertexBuffer = VertexBuffer::New( vertexFormat );
 
     const float P( 0.5f );
     const Vector2 vertices[] = {
index 4f04401df71c7b5de5fd014373145ae2c28f83f0..bb93f27bd16216d74c332e53e7c18439209ceca8 100644 (file)
@@ -256,7 +256,7 @@ ModelPtr CreateModel(
   /**
    * Create matching property buffer
    */
-  auto vertexBuffer = PropertyBuffer::New( Property::Map()
+  auto vertexBuffer = VertexBuffer::New( Property::Map()
                                              .Add("aPosition", Property::VECTOR3 )
                                              .Add("aNormal", Property::VECTOR3)
                                              .Add("aTexCoord", Property::VECTOR2)
index 804e784a8669081f8c5ada067eae2d502fb40506..42db09d2ce099dbd6368688414a2a20e1580f543 100644 (file)
@@ -458,7 +458,7 @@ private:
     vertexFormat["aPosition"] = Property::VECTOR3;
     vertexFormat["aNormal"] = Property::VECTOR3;
     vertexFormat["aTexCoord"] = Property::VECTOR2;
-    PropertyBuffer surfaceVertices = PropertyBuffer::New( vertexFormat );
+    VertexBuffer surfaceVertices = VertexBuffer::New( vertexFormat );
     surfaceVertices.SetData( &vertices[0], vertices.size() );
 
     Geometry surface = Geometry::New();
index e9004dbbe5ea40032b4d9949dbdec3b6c02ce53d..d159f617873174a8b6e224fa185b93e190face11 100644 (file)
@@ -460,7 +460,7 @@ private:
     vertexFormat[NORMAL] =   Property::VECTOR3;
     vertexFormat[TEXTURE] =  Property::VECTOR2;
 
-    PropertyBuffer surfaceVertices = PropertyBuffer::New( vertexFormat );
+    VertexBuffer surfaceVertices = VertexBuffer::New( vertexFormat );
     surfaceVertices.SetData( &vertices[0u], vertices.Size() );
 
     Geometry geometry = Geometry::New();
index 7d89a7747f4a1483f558fd1771461e76311620f2..9886838557396366157bf2a08db4b07037f03dcb 100644 (file)
@@ -308,7 +308,7 @@ public:
     property.Insert( "aPosition", Property::VECTOR3 );
     property.Insert( "aNormal", Property::VECTOR3 );
 
-    PropertyBuffer vertexBuffer = PropertyBuffer::New( property );
+    VertexBuffer vertexBuffer = VertexBuffer::New( property );
 
     vertexBuffer.SetData( vertices, sizeof(vertices) / sizeof(Vertex) );
 
index a6bf5e3529bdd466b2c510783eda7d39e54eced5..d3296d2dfaf1c5b83c1999da3eef7d2dfc3ccf85 100644 (file)
@@ -183,8 +183,8 @@ Geometry ModelSkybox::CreateGeometry()
       { Vector3(   1.0f, -1.0f,  1.0f ) }
   };
 
-  PropertyBuffer vertexBuffer = PropertyBuffer::New( Property::Map()
-                                                     .Add( "aPosition", Property::VECTOR3 ) );
+  VertexBuffer vertexBuffer = VertexBuffer::New( Property::Map()
+                                                 .Add( "aPosition", Property::VECTOR3 ) );
   vertexBuffer.SetData( skyboxVertices, sizeof(skyboxVertices) / sizeof(Vertex) );
 
   geometry = Geometry::New();
index bb21c9c8a3f9e816cae770be8eabda82f1a9d5ba..82ffa6a9288387a7ca1c395d68a2f9a71464fe56 100644 (file)
@@ -617,12 +617,12 @@ Geometry ObjLoader::CreateGeometry( int objectProperties, bool useSoftNormals )
 
   Property::Map positionMap;
   positionMap["aPosition"] = Property::VECTOR3;
-  PropertyBuffer positionBuffer = PropertyBuffer::New( positionMap );
+  VertexBuffer positionBuffer = VertexBuffer::New( positionMap );
   positionBuffer.SetData( positions.Begin(), positions.Count() );
 
   Property::Map normalMap;
   normalMap["aNormal"] = Property::VECTOR3;
-  PropertyBuffer normalBuffer = PropertyBuffer::New( normalMap );
+  VertexBuffer normalBuffer = VertexBuffer::New( normalMap );
   normalBuffer.SetData( normals.Begin(), normals.Count() );
 
   surface.AddVertexBuffer( positionBuffer );
@@ -633,7 +633,7 @@ Geometry ObjLoader::CreateGeometry( int objectProperties, bool useSoftNormals )
   {
     Property::Map tangentMap;
     tangentMap["aTangent"] = Property::VECTOR3;
-    PropertyBuffer tangentBuffer = PropertyBuffer::New( tangentMap );
+    VertexBuffer tangentBuffer = VertexBuffer::New( tangentMap );
     tangentBuffer.SetData( tangents.Begin(), tangents.Count() );
 
     surface.AddVertexBuffer( tangentBuffer );
@@ -644,7 +644,7 @@ Geometry ObjLoader::CreateGeometry( int objectProperties, bool useSoftNormals )
   {
     Property::Map textCoordMap;
     textCoordMap["aTexCoord"] = Property::VECTOR2;
-    PropertyBuffer texCoordBuffer = PropertyBuffer::New( textCoordMap );
+    VertexBuffer texCoordBuffer = VertexBuffer::New( textCoordMap );
     texCoordBuffer.SetData( textures.Begin(), textures.Count() );
 
     surface.AddVertexBuffer( texCoordBuffer );
index 9b4260f81cc86991f77b5d547354a896caeb35dd..3153d04923e57c4182cc4536da791a5a72792c2e 100644 (file)
@@ -187,7 +187,7 @@ public:
       { Vector3( -1.0f, 1.0f, 1.0f ), COLOR2 },
     };
 
-    PropertyBuffer vertexBuffer = PropertyBuffer::New( Property::Map()
+    VertexBuffer vertexBuffer = VertexBuffer::New( Property::Map()
                                                        .Add( "aPosition", Property::VECTOR3 )
                                                        .Add( "aColor", Property::VECTOR3 ) );
     vertexBuffer.SetData( vertices, sizeof(vertices) / sizeof(Vertex) );
index 1f421adedc3caa1b99250c570c8adbf4118c56ea..d50a4f00f7ba631f7faf8ed2570ce622c3b11426 100644 (file)
@@ -133,8 +133,8 @@ public:
       Vector2(  1.0f,  1.0f )
     };
 
-    PropertyBuffer vertexBuffer = PropertyBuffer::New( Property::Map()
-                                                       .Add( "aPosition", Property::VECTOR2 ) );
+    VertexBuffer vertexBuffer = VertexBuffer::New( Property::Map()
+                                                   .Add( "aPosition", Property::VECTOR2 ) );
     vertexBuffer.SetData( vertices, sizeof(vertices) / sizeof(Vector2) );
 
     mGeometry = Geometry::New();
index e3133ca5eee7d8cb3491a6a26fbcd95ba3df1147..046fc7141d11847c4c2b62fa0a326946f6ad0422 100644 (file)
@@ -188,7 +188,7 @@ public:
     vertexFormat[ "aPosition" ] = Property::VECTOR3;
 
     // describe vertex format ( only 2-dimensional positions )
-    PropertyBuffer vertexBuffer = PropertyBuffer::New( vertexFormat );
+    VertexBuffer vertexBuffer = VertexBuffer::New( vertexFormat );
     vertexBuffer.SetData( vertices.data(), vertices.size() );
 
     // create geometry
@@ -238,7 +238,7 @@ public:
 
     Property::Map vertexFormat;
     vertexFormat["aPosition"] = Property::VECTOR2;
-    PropertyBuffer vertexBuffer = PropertyBuffer::New( vertexFormat );
+    VertexBuffer vertexBuffer = VertexBuffer::New( vertexFormat );
 
     const float P( 0.5f );
     const Vector2 vertices[] = {
index db94cfe9db7bd920aca9d67b270fa321e1f474e5..45f56173f7226e773cbf599a55ccdfa2ffc7b71a 100644 (file)
@@ -272,9 +272,9 @@ public:
       { Vector3( -1.0f, 1.0f, 1.0f ), Vector2( 0.0, 0.0 ) },
     };
 
-    PropertyBuffer vertexBuffer = PropertyBuffer::New( Property::Map()
-                                                       .Add( "aPosition", Property::VECTOR3 )
-                                                       .Add( "aTexCoord", Property::VECTOR2 ) );
+    VertexBuffer vertexBuffer = VertexBuffer::New( Property::Map()
+                                                   .Add( "aPosition", Property::VECTOR3 )
+                                                   .Add( "aTexCoord", Property::VECTOR2 ) );
     vertexBuffer.SetData( vertices, sizeof(vertices) / sizeof(Vertex) );
 
     // create indices
@@ -362,8 +362,8 @@ public:
         { Vector3(   1.0f, -1.0f,  1.0f ) }
     };
 
-    PropertyBuffer vertexBuffer = PropertyBuffer::New( Property::Map()
-                                                       .Add( "aPosition", Property::VECTOR3 ) );
+    VertexBuffer vertexBuffer = VertexBuffer::New( Property::Map()
+                                                   .Add( "aPosition", Property::VECTOR3 ) );
     vertexBuffer.SetData( skyboxVertices, sizeof(skyboxVertices) / sizeof(Vertex) );
 
     mSkyboxGeometry = Geometry::New();
index be225674c359b4b77d6a32a440523dad2585f70d..3aa55dac0441cc35b9f8dd37bdfbe037545886d5 100644 (file)
@@ -187,9 +187,9 @@ public:
       { Vector3( -1.0f, 1.0f, 1.0f ), Vector2( 0.0, 0.0 ) },
     };
 
-    PropertyBuffer vertexBuffer = PropertyBuffer::New( Property::Map()
-                                                       .Add( "aPosition", Property::VECTOR3 )
-                                                       .Add( "aTexCoord", Property::VECTOR2 ) );
+    VertexBuffer vertexBuffer = VertexBuffer::New( Property::Map()
+                                                   .Add( "aPosition", Property::VECTOR3 )
+                                                   .Add( "aTexCoord", Property::VECTOR2 ) );
     vertexBuffer.SetData( vertices, sizeof(vertices) / sizeof(Vertex) );
 
     // create indices
index c69f323c491b67d602cd16723ddd879c68e6b197..f983c140e11b199268f7f07a320a4ff3a2f04dea 100644 (file)
@@ -134,8 +134,8 @@ public:
       Vector2( -1.0f,  1.0f )
     };
 
-    PropertyBuffer vertexBuffer = PropertyBuffer::New( Property::Map()
-                                                       .Add( "aPosition", Property::VECTOR2 ) );
+    VertexBuffer vertexBuffer = VertexBuffer::New( Property::Map()
+                                                   .Add( "aPosition", Property::VECTOR2 ) );
     vertexBuffer.SetData( vertices, sizeof(vertices) / sizeof(Vector2) );
 
     mGeometry = Geometry::New();
index 8135fd3252839a3b50ef033c913016b159352b3c..f6f99b8b35cc8ea95423ecc49a2560882f06ee76 100644 (file)
@@ -95,7 +95,7 @@ Renderer CreateRenderer()
   Property::Map property;
   property.Add("aPosition", Property::VECTOR2).Add("aTexCoord", Property::VECTOR2);
 
-  PropertyBuffer vertexBuffer = PropertyBuffer::New(property);
+  VertexBuffer vertexBuffer = VertexBuffer::New(property);
 
   vertexBuffer.SetData(vertices, sizeof(vertices) / sizeof(Vertex));
 
index a1444fad03a16cf51c7a4467fa2d835aa12e6a53..be899bec455bcf38d19238f46759c045b96b1d7f 100644 (file)
@@ -153,11 +153,11 @@ private:
     vertexFormat["aParticlePath4"] = Property::VECTOR2;
     vertexFormat["aParticlePath5"] = Property::VECTOR2;
 
-    PropertyBuffer propertyBuffer = PropertyBuffer::New( vertexFormat );
-    propertyBuffer.SetData( &vertices[0], vertices.size() );
+    VertexBuffer vertexBuffer = VertexBuffer::New( vertexFormat );
+    vertexBuffer.SetData( &vertices[0], vertices.size() );
 
     Geometry geometry = Geometry::New();
-    geometry.AddVertexBuffer( propertyBuffer );
+    geometry.AddVertexBuffer( vertexBuffer );
     geometry.SetIndexBuffer( &faces[0], faces.size() );
     geometry.SetType( Geometry::TRIANGLES );
 
@@ -558,4 +558,3 @@ int DALI_EXPORT_API main( int argc, char **argv )
   application.MainLoop();
   return 0;
 }
-
index 7c31dffc71813802adff9860202cfbf8d967e903..8295b232633285964f3267eb2eece1178de4b1c1 100644 (file)
@@ -63,13 +63,13 @@ Dali::Geometry CreateTexturedQuad()
                                 { Dali::Vector2( -0.5f,  0.5f ), Dali::Vector2( 0.0f, 1.0f ) },
                                 { Dali::Vector2(  0.5f,  0.5f ), Dali::Vector2( 1.0f, 1.0f ) }};
 
-  Dali::PropertyBuffer vertexBuffer;
+  Dali::VertexBuffer vertexBuffer;
   Dali::Property::Map vertexFormat;
   vertexFormat["aPosition"] = Dali::Property::VECTOR2;
   vertexFormat["aTexCoord"] = Dali::Property::VECTOR2;
 
   //Create a vertex buffer for vertex positions and texture coordinates
-  vertexBuffer = Dali::PropertyBuffer::New( vertexFormat );
+  vertexBuffer = Dali::VertexBuffer::New( vertexFormat );
   vertexBuffer.SetData( data, 4u );
 
   //Create the geometry