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

Go to the source code of this file.

Data Structures

struct  tpbrt_light_source_distant_params_t
 Distant light source parameters. More...
 
struct  tpbrt_light_source_goniometric_params_t
 Goniometric light source parameters. More...
 
struct  tpbrt_light_source_infinite_params_t
 Infinite light source parameters. More...
 
struct  tpbrt_light_source_point_params_t
 Point light source parameters. More...
 
struct  tpbrt_light_source_projection_params_t
 Projection light source parameters. More...
 
struct  tpbrt_light_source_spot_params_t
 Spot light source parameters. More...
 
struct  tpbrt_light_source_t
 PBRT light source representation. More...
 
struct  tpbrt_area_light_diffuse_params_t
 Diffuse area light parameters. More...
 
struct  tpbrt_area_light_t
 PBRT area light representation. More...
 
struct  tpbrt_area_light_handle_t
 Area light handle. More...
 
struct  tpbrt_lights_sources_list_t
 List of light sources. More...
 
struct  tpbrt_area_lights_list_t
 List of area lights. More...
 
struct  tpbrt_lights_list_t
 List of all types of lights. More...
 

Macros

#define _TINYPBRT_LIGHT_H_
 

Enumerations

enum  tpbrt_light_source_type_t {
  TPBRT_LIGHT_SOURCE_TYPE_DISTANT = 0 , TPBRT_LIGHT_SOURCE_TYPE_GONIOMETRIC = 1 , TPBRT_LIGHT_SOURCE_TYPE_INFINITE = 2 , TPBRT_LIGHT_SOURCE_TYPE_POINT = 3 ,
  TPBRT_LIGHT_SOURCE_TYPE_PROJECTION = 4 , TPBRT_LIGHT_SOURCE_TYPE_SPOT = 5 , TPBRT_LIGHT_SOURCE_TYPE_MAX_NUM = 6
}
 Light source type. More...
 
enum  tpbrt_area_light_type_t { TPBRT_AREA_LIGHT_TYPE_DIFFUSE = 0 , TPBRT_AREA_LIGHT_TYPE_MAX_NUM = 1 }
 Area light type. More...
 

Functions

tpbrt_error_t tpbrt_get_area_light_by_handle (const tpbrt_area_lights_list_t *area_lights_list, tpbrt_area_light_handle_t handle, const tpbrt_area_light_t **area_light)
 Returns pointer to area light to which handle is provided.
 

Macro Definition Documentation

◆ _TINYPBRT_LIGHT_H_

#define _TINYPBRT_LIGHT_H_