tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
Loading...
Searching...
No Matches
light.hpp File Reference

Go to the source code of this file.

Data Structures

struct  tpbrt::light_source_distant_params
 C++ wrapper for tpbrt_light_source_distant_params_t. More...
 
struct  tpbrt::light_source_goniometric_params
 C++ wrapper for tpbrt_light_source_goniometric_params_t. More...
 
struct  tpbrt::light_source_infinite_params
 C++ wrapper for tpbrt_light_source_infinite_params_t. More...
 
struct  tpbrt::light_source_point_params
 C++ wrapper for tpbrt_light_source_point_params_t. More...
 
struct  tpbrt::light_source_projection_params
 C++ wrapper for tpbrt_light_source_projection_params_t. More...
 
struct  tpbrt::light_source_spot_params
 C++ wrapper for tpbrt_light_source_spot_params_t. More...
 
struct  tpbrt::light_source
 C++ wrapper for tpbrt_light_source_t. More...
 
struct  tpbrt::area_light_diffuse_params
 C++ wrapper for tpbrt_area_light_diffuse_params_t. More...
 
struct  tpbrt::area_light
 C++ wrapper for tpbrt_area_light_t. More...
 
struct  tpbrt::area_light_handle
 C++ wrapper for tpbrt_area_light_handle_t. More...
 
struct  tpbrt::area_lights_list
 C++ wrapper for tpbrt_area_lights_list_t. More...
 
struct  tpbrt::lights_list
 C++ wrapper for tpbrt_lights_list_t. More...
 

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.
 

Macro Definition Documentation

◆ _TINYPBRT_LIGHT_HPP_

#define _TINYPBRT_LIGHT_HPP_