END_TEST;
}
-int UtcDaliRendererSetIndicesRange(void)
+int UtcDaliRendererSetIndexRange(void)
{
std::string
vertexShader(
// LINE_LOOP, first 0, count 5
{
- renderer.SetIndicesRange( 0, 5 );
+ renderer.SetIndexRange( 0, 5 );
application.SendNotification();
application.Render();
sprintf( buffer, "%u, 5, %u, indices", GL_LINE_LOOP, GL_UNSIGNED_SHORT );
// LINE_LOOP, first 5, count 10
{
- renderer.SetIndicesRange( 5, 10 );
+ renderer.SetIndexRange( 5, 10 );
sprintf( buffer, "%u, 10, %u, indices", GL_LINE_LOOP, GL_UNSIGNED_SHORT );
application.SendNotification();
application.Render();
// LINE_STRIP, first 15, count 6
{
- renderer.SetIndicesRange( 15, 6 );
+ renderer.SetIndexRange( 15, 6 );
geometry.SetGeometryType( Geometry::LINE_STRIP );
sprintf( buffer, "%u, 6, %u, indices", GL_LINE_STRIP, GL_UNSIGNED_SHORT );
application.SendNotification();
BLENDING_DEST_FACTOR_ALPHA, ///< name "destinationBlendFactorAlpha", type INTEGER
BLENDING_COLOR, ///< name "blendingColor", type VECTOR4
BLEND_PRE_MULTIPLIED_ALPHA, ///< name "blendPreMultipledAlpha", type BOOLEAN
- INDEXED_DRAW_FIRST_ELEMENT, ///< name "indexedDrawFirstElement", type INTEGER
- INDEXED_DRAW_ELEMENTS_COUNT ///< name "indexedDrawElementsCount", type INTEGER
+ INDEX_RANGE_FIRST, ///< name "indexRangeFirst", type INTEGER
+ INDEX_RANGE_COUNT ///< name "indexRangeCount", type INTEGER
};
};
* @param [in] firstElement first element to draw
* @param [in] elementsCount number of elements to draw
*/
- inline void SetIndicesRange( int firstElement, int elementsCount )
+ inline void SetIndexRange( int firstElement, int elementsCount )
{
- SetProperty( Property::INDEXED_DRAW_FIRST_ELEMENT, firstElement );
- SetProperty( Property::INDEXED_DRAW_ELEMENTS_COUNT, elementsCount );
+ SetProperty( Property::INDEX_RANGE_FIRST, firstElement );
+ SetProperty( Property::INDEX_RANGE_COUNT, elementsCount );
}
/**
DALI_PROPERTY( "destinationBlendFactorAlpha", INTEGER, true, false, false, Dali::Renderer::Property::BLENDING_DEST_FACTOR_ALPHA )
DALI_PROPERTY( "blendingColor", VECTOR4, true, false, false, Dali::Renderer::Property::BLENDING_COLOR )
DALI_PROPERTY( "blendPreMultipliedAlpha", BOOLEAN, true, false, false, Dali::Renderer::Property::BLEND_PRE_MULTIPLIED_ALPHA )
-DALI_PROPERTY( "indexedDrawFirstElement", INTEGER, true, false, false, Dali::Renderer::Property::INDEXED_DRAW_FIRST_ELEMENT )
-DALI_PROPERTY( "indexedDrawElementsCount", INTEGER, true, false, false, Dali::Renderer::Property::INDEXED_DRAW_ELEMENTS_COUNT )
+DALI_PROPERTY( "indexRangeFirst", INTEGER, true, false, false, Dali::Renderer::Property::INDEX_RANGE_FIRST )
+DALI_PROPERTY( "indexRangeCount", INTEGER, true, false, false, Dali::Renderer::Property::INDEX_RANGE_COUNT )
DALI_PROPERTY_TABLE_END( DEFAULT_OBJECT_PROPERTY_START_INDEX )
const ObjectImplHelper<DEFAULT_PROPERTY_COUNT> RENDERER_IMPL = { DEFAULT_PROPERTY_DETAILS };
}
break;
}
- case Dali::Renderer::Property::INDEXED_DRAW_FIRST_ELEMENT:
+ case Dali::Renderer::Property::INDEX_RANGE_FIRST:
{
int firstElement;
if( propertyValue.Get( firstElement ) )
}
break;
}
- case Dali::Renderer::Property::INDEXED_DRAW_ELEMENTS_COUNT:
+ case Dali::Renderer::Property::INDEX_RANGE_COUNT:
{
int elementsCount;
if( propertyValue.Get( elementsCount ) )
value = IsPreMultipliedAlphaEnabled();
break;
}
- case Dali::Renderer::Property::INDEXED_DRAW_FIRST_ELEMENT:
+ case Dali::Renderer::Property::INDEX_RANGE_FIRST:
{
value = static_cast<int>( mIndexedDrawFirstElement );
break;
}
- case Dali::Renderer::Property::INDEXED_DRAW_ELEMENTS_COUNT:
+ case Dali::Renderer::Property::INDEX_RANGE_COUNT:
{
value = static_cast<int>( mIndexedDrawElementCount );
break;