|
tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
|
#include <tinypbrt/detail/cpp/fwd.hpp>#include <tinypbrt/detail/light.h>#include <string_view>#include <tuple>#include <tinypbrt/detail/cpp/color.hpp>#include <tinypbrt/detail/cpp/common.hpp>#include <tinypbrt/detail/cpp/math.hpp>#include <tinypbrt/detail/cpp/media.hpp>#include <tinypbrt/detail/cpp/texture.hpp>#include <tinypbrt/detail/cpp/transform.hpp>Go to the source code of this file.
Namespaces | |
| namespace | tpbrt |
Macros | |
| #define | _TINYPBRT_LIGHT_HPP_ |
Typedefs | |
| using | tpbrt::lights_sources_list = array< tpbrt_lights_sources_list_t, light_source, &tpbrt_lights_sources_list_t::lights > |
| C++ wrapper for tpbrt_lights_sources_list_t. | |
Enumerations | |
| enum class | tpbrt::light_source_type : uchar_t { tpbrt::light_source_type::DISTANT = TPBRT_LIGHT_SOURCE_TYPE_DISTANT , tpbrt::light_source_type::GONIOMETRIC = TPBRT_LIGHT_SOURCE_TYPE_GONIOMETRIC , tpbrt::light_source_type::INFINITE = TPBRT_LIGHT_SOURCE_TYPE_INFINITE , tpbrt::light_source_type::POINT = TPBRT_LIGHT_SOURCE_TYPE_POINT , tpbrt::light_source_type::PROJECTION = TPBRT_LIGHT_SOURCE_TYPE_PROJECTION , tpbrt::light_source_type::SPOT = TPBRT_LIGHT_SOURCE_TYPE_SPOT , tpbrt::light_source_type::MAX_NUM = TPBRT_LIGHT_SOURCE_TYPE_MAX_NUM } |
| Light source type. More... | |
| enum class | tpbrt::area_light_type : uchar_t { tpbrt::area_light_type::DIFFUSE = TPBRT_AREA_LIGHT_TYPE_DIFFUSE , tpbrt::area_light_type::MAX_NUM = TPBRT_AREA_LIGHT_TYPE_MAX_NUM } |
| Area light type. More... | |
Functions | |
| constexpr std::string_view | tpbrt::to_string (const light_source_type type) noexcept |
| Converts light_source_type enum value to string. | |
| constexpr std::string_view | tpbrt::to_string (const area_light_type type) noexcept |
| Converts area_light_type enum value to string. | |
| result< area_light > | tpbrt::get_area_light (const area_lights_list list, const area_light_handle handle) noexcept |
| Returns area light to which handle is provided. | |
| #define _TINYPBRT_LIGHT_HPP_ |