// Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#pragma once

#include "BindPolygonMesh.h"
#include "DocTexturedMesh.h"
#include "DocImageHelper.h"

// clang-format off

#define OMNIUI_PYBIND_INIT_TexturedMesh                                                                                \
    OMNIUI_PYBIND_INIT_PolygonMesh                                                                                     \
    OMNIUI_PYBIND_INIT_CALL(uvs, setUvs, pythonListToVector2)                                                          \
    OMNIUI_PYBIND_INIT_CAST(source_url, setSourceUrl, std::string)                                                     \
    OMNIUI_PYBIND_INIT_CAST(image_provider, setImageProvider, std::shared_ptr<ImageProvider>)                          \
    OMNIUI_PYBIND_INIT_CAST(image_width, setImageWidth, uint32_t)                                                      \
    OMNIUI_PYBIND_INIT_CAST(image_height, setImageHeight, uint32_t)

#define OMNIUI_PYBIND_KWARGS_DOC_TexturedMesh                                                                          \
    "\n    `uvs : `\n        "                                                                                         \
    OMNIUI_PYBIND_DOC_TexturedMesh_uvs                                                                                 \
    "\n    `source_url : `\n        "                                                                                  \
    OMNIUI_PYBIND_DOC_TexturedMesh_sourceUrl                                                                           \
    "\n    `image_provider : `\n        "                                                                              \
    OMNIUI_PYBIND_DOC_TexturedMesh_imageProvider                                                                       \
    "\n    `image_width : `\n        "                                                                                 \
    OMNIUI_PYBIND_DOC_ImageHelper_imageWidth                                                                          \
    "\n    `image_height : `\n        "                                                                                \
    OMNIUI_PYBIND_DOC_ImageHelper_imageHeight                                                                     \
    OMNIUI_PYBIND_KWARGS_DOC_PolygonMesh

// clang-format on
