-const Render::PropertyBuffer* Geometry::GetPropertyBuffer( size_t index ) const
-{
- if( index < mVertexBuffers.Size() )
- {
- return mVertexBuffers[ index ];
- }
- return NULL;
-}
-
-void Geometry::GetAttributeLocationFromProgram( Vector<GLint>& attributeLocation, Program& program, BufferIndex bufferIndex ) const
-{
- attributeLocation.Clear();
-
- for( size_t i(0); i< mVertexBuffers.Size(); ++i )
- {
- unsigned int attributeCount = mVertexBuffers[i]->GetAttributeCount();
- for( unsigned int j = 0; j < attributeCount; ++j )
- {
- const std::string& attributeName = mVertexBuffers[i]->GetAttributeName( j );
- unsigned int index = program.RegisterCustomAttribute( attributeName );
- GLint location = program.GetCustomAttributeLocation( index );
-
- if( -1 == location )
- {
- DALI_LOG_WARNING( "Attribute not found in the shader: %s\n", attributeName.c_str() );
- }
-
- attributeLocation.PushBack( location );
- }
- }
-}
-