-#ifndef DALI_INTERNAL_VERTEX_BUFFER_H
-#define DALI_INTERNAL_VERTEX_BUFFER_H
+#ifndef DALI_INTERNAL_PROPERTY_BUFFER_H
+#define DALI_INTERNAL_PROPERTY_BUFFER_H
/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <dali/public-api/object/base-object.h>
#include <dali/public-api/object/property-map.h> // Dali::Property::Map
#include <dali/internal/event/common/event-thread-services.h>
-#include <dali/internal/render/renderers/render-vertex-buffer.h>
+#include <dali/internal/render/renderers/render-property-buffer.h>
namespace Dali
{
namespace Internal
{
-class VertexBuffer;
-typedef IntrusivePtr<VertexBuffer> VertexBufferPtr;
+class PropertyBuffer;
+typedef IntrusivePtr<PropertyBuffer> PropertyBufferPtr;
/**
- * VertexBuffer is an object that contains an array of structures of values that
+ * PropertyBuffer is an object that contains an array of structures of values that
* can be accessed as properties.
*/
-class VertexBuffer : public BaseObject
+class PropertyBuffer : public BaseObject
{
public:
/**
* @copydoc PropertBuffer::New()
*/
- static VertexBufferPtr New( Dali::Property::Map& format );
+ static PropertyBufferPtr New( Dali::Property::Map& format );
/**
* @copydoc PropertBuffer::SetData()
public: // Default property extensions from Object
/**
- * @brief Get the render thread side of the VertexBuffer
+ * @brief Get the render thread side of the PropertyBuffer
*
- * @return The render thread side of this VertexBuffer
+ * @return The render thread side of this PropertyBuffer
*/
- const Render::VertexBuffer* GetRenderObject() const;
+ const Render::PropertyBuffer* GetRenderObject() const;
protected:
/**
* @brief Destructor
*/
- ~VertexBuffer();
+ ~PropertyBuffer();
private: // implementation
/**
* @brief Default constructor
*/
- VertexBuffer();
+ PropertyBuffer();
/**
* Second stage initialization
void Initialize( Dali::Property::Map& format );
private: // unimplemented methods
- VertexBuffer( const VertexBuffer& );
- VertexBuffer& operator=( const VertexBuffer& );
+ PropertyBuffer( const PropertyBuffer& );
+ PropertyBuffer& operator=( const PropertyBuffer& );
private: // data
EventThreadServices& mEventThreadServices; ///<Used to send messages to the render thread via update thread
- Render::VertexBuffer* mRenderObject; ///<Render side object
+ Render::PropertyBuffer* mRenderObject; ///<Render side object
uint32_t mBufferFormatSize;
uint32_t mSize; ///< Number of elements in the buffer
};
*/
template<Property::Type type> struct PropertyImplementationType
{
- // typedef ... Type; not defined, only support types declared below
+ // typedef ... Type; not defined, only support types declared bellow
};
template<> struct PropertyImplementationType< Property::BOOLEAN > { typedef bool Type; };
template<> struct PropertyImplementationType< Property::FLOAT > { typedef float Type; };
} // namespace Internal
// Helpers for public-api forwarding methods
-inline Internal::VertexBuffer& GetImplementation(Dali::VertexBuffer& handle)
+inline Internal::PropertyBuffer& GetImplementation(Dali::PropertyBuffer& handle)
{
- DALI_ASSERT_ALWAYS(handle && "VertexBuffer handle is empty");
+ DALI_ASSERT_ALWAYS(handle && "PropertyBuffer handle is empty");
BaseObject& object = handle.GetBaseObject();
- return static_cast<Internal::VertexBuffer&>(object);
+ return static_cast<Internal::PropertyBuffer&>(object);
}
-inline const Internal::VertexBuffer& GetImplementation(const Dali::VertexBuffer& handle)
+inline const Internal::PropertyBuffer& GetImplementation(const Dali::PropertyBuffer& handle)
{
- DALI_ASSERT_ALWAYS(handle && "VertexBuffer handle is empty");
+ DALI_ASSERT_ALWAYS(handle && "PropertyBuffer handle is empty");
const BaseObject& object = handle.GetBaseObject();
- return static_cast<const Internal::VertexBuffer&>(object);
+ return static_cast<const Internal::PropertyBuffer&>(object);
}
} // namespace Dali
-#endif // DALI_INTERNAL_VERTEX_BUFFER_H
+#endif // DALI_INTERNAL_PROPERTY_BUFFER_H