Ensure BaseHandle class move noexcept (core public-api)
[platform/core/uifw/dali-core.git] / dali / public-api / rendering / geometry.h
index cfb0f15..3ff19a3 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_GEOMETRY_H
 
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
@@ -117,7 +117,7 @@ public:
    * @SINCE_1_9.22
    * @param[in] rhs A reference to the moved handle
    */
-  Geometry(Geometry&& rhs);
+  Geometry(Geometry&& rhs) noexcept;
 
   /**
    * @brief Move assignment operator.
@@ -126,7 +126,7 @@ public:
    * @param[in] rhs A reference to the moved handle
    * @return A reference to this handle
    */
-  Geometry& operator=(Geometry&& rhs);
+  Geometry& operator=(Geometry&& rhs) noexcept;
 
   /**
    * @brief Adds a VertexBuffer to be used as source of geometry vertices.
@@ -156,7 +156,7 @@ public:
   void RemoveVertexBuffer(std::size_t index);
 
   /**
-   * @brief Sets the index data to be used as a source of indices for the geometry
+   * @brief Sets the index data to be used as a source of indices for the geometry
    * Setting this buffer will cause the geometry to be rendered using indices.
    * To unset call SetIndexBuffer with a null pointer or count 0.
    *
@@ -167,6 +167,17 @@ public:
   void SetIndexBuffer(const uint16_t* indices, size_t count);
 
   /**
+   * @brief Sets the 32bits index data to be used as a source of indices for the geometry
+   * Setting this buffer will cause the geometry to be rendered using indices.
+   * To unset call SetIndexBuffer with a null pointer or count 0.
+   *
+   * @SINCE_2_2.16
+   * @param[in] indices Array of indices with uint32_t elements.
+   * @param[in] count Number of indices in the array
+   */
+  void SetIndexBuffer(const uint32_t* indices, size_t count);
+
+  /**
    * @brief Sets the type of primitives this geometry contains.
    *
    * @SINCE_1_1.43