+ unsigned int size = V8Utils::GetIntegerParameter( PARAMETER_1, found, isolate, args, 0);
+ if( !found )
+ {
+ DALI_SCRIPT_EXCEPTION( isolate, "missing buffer size from param 1" );
+ }
+ else
+ {
+ Dali::Vector<unsigned short> indices;
+ indices.Resize( size );
+ unsigned int* indexData = static_cast<unsigned int*>(data);
+ for( size_t i(0); i<size; ++i )
+ {
+ indices[i] = indexData[i];
+ }
+ geometry.SetIndexBuffer( &indices[0], size );
+ }