pentagonVertexFormat["aPosition1"] = Property::VECTOR2;
pentagonVertexFormat["aPosition2"] = Property::VECTOR2;
pentagonVertexFormat["aColor"] = Property::VECTOR3;
- VertexBuffer pentagonVertices = VertexBuffer::New( pentagonVertexFormat );
+ PropertyBuffer pentagonVertices = PropertyBuffer::New( pentagonVertexFormat );
pentagonVertices.SetData(pentagonVertexData, 5);
void OnKeyEvent(const KeyEvent& event)
{
- if(event.GetState() == KeyEvent::DOWN)
+ if(event.state == KeyEvent::Down)
{
if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) )
{