X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-script-v8%2Fsrc%2Frendering%2Fgeometry-api.cpp;h=7011c206b2c5516df96f2bc266c434fe9068bc77;hp=af216bd4a45107cfef4beb86a7721c5cc0084474;hb=cbe7fefea4a6e34d22333c248f643f873744b055;hpb=d499ee67891bdb61ecb5b0c69b5d146fcb644390 diff --git a/plugins/dali-script-v8/src/rendering/geometry-api.cpp b/plugins/dali-script-v8/src/rendering/geometry-api.cpp index af216bd..7011c20 100644 --- a/plugins/dali-script-v8/src/rendering/geometry-api.cpp +++ b/plugins/dali-script-v8/src/rendering/geometry-api.cpp @@ -236,7 +236,7 @@ void GeometryApi::SetIndexBuffer( const v8::FunctionCallbackInfo& arg /** * Set the type of primitives this geometry contains * - * @method setGeometryType + * @method setType * @for Geometry * @param {integer} geometryType Type of primitives this geometry contains * @example @@ -249,9 +249,9 @@ void GeometryApi::SetIndexBuffer( const v8::FunctionCallbackInfo& arg * dali.GEOMETRY_TRIANGLE_FAN * dali.GEOMETRY_TRIANGLE_STRIP * - * geometry.SetGeometryType( dali.GEOMETRY_LINES ); + * geometry.SetType( dali.GEOMETRY_LINES ); */ -void GeometryApi::SetGeometryType( const v8::FunctionCallbackInfo< v8::Value >& args ) +void GeometryApi::SetType( const v8::FunctionCallbackInfo< v8::Value >& args ) { v8::Isolate* isolate = args.GetIsolate(); v8::HandleScope handleScope( isolate ); @@ -266,14 +266,14 @@ void GeometryApi::SetGeometryType( const v8::FunctionCallbackInfo< v8::Value >& } else { - geometry.SetGeometryType(static_cast(geometryType)); + geometry.SetType(static_cast(geometryType)); } } /** * Get the type of primitives this geometry contains * - * @method getGeometryType + * @method getType * @for Geometry * @return {integer} Type of primitives this geometry contains * @example @@ -286,14 +286,14 @@ void GeometryApi::SetGeometryType( const v8::FunctionCallbackInfo< v8::Value >& * dali.GEOMETRY_TRIANGLE_FAN * dali.GEOMETRY_TRIANGLE_STRIP */ -void GeometryApi::GetGeometryType( const v8::FunctionCallbackInfo< v8::Value >& args ) +void GeometryApi::GetType( const v8::FunctionCallbackInfo< v8::Value >& args ) { v8::Isolate* isolate = args.GetIsolate(); v8::HandleScope handleScope( isolate ); Geometry geometry = GetGeometry( isolate, args ); - args.GetReturnValue().Set( v8::Integer::New( isolate, geometry.GetGeometryType() ) ); + args.GetReturnValue().Set( v8::Integer::New( isolate, geometry.GetType() ) ); } } // namespace V8Plugin