2#ifndef _TINYPBRT_FWD_H_
3#define _TINYPBRT_FWD_H_
14#pragma region COMMON_DEFINES
19#define TPBRT_NULL NULL
38#if defined(__GNUC__) || defined(__clang__)
39#define TPBRT_ANONYMOUS_UNION __extension__ union
41#define TPBRT_ANONYMOUS_UNION union
124#define TPBRT_IDX_INVALID (~(tpbrt_idx_t)0)
223#pragma region TRANSFORM
233#define TPBRT_TRANSFORM_IDX_INVALID TPBRT_IDX_INVALID
242#pragma region TEXTURE
252#define TPBRT_TEXTURE_IDX_INVALID TPBRT_IDX_INVALID
271#pragma region SAMPLER
275#pragma region OPTIONS
289#define TPBRT_OBJECT_IDX_INVALID TPBRT_IDX_INVALID
298#pragma region OBJECT_INSTANCE
314#define TPBRT_MEDIA_IDX_INVALID TPBRT_IDX_INVALID
323#pragma region MATERIAL
333#define TPBRT_MATERIAL_IDX_INVALID TPBRT_IDX_INVALID
356#define TPBRT_AREA_LIGHT_IDX_INVALID TPBRT_IDX_INVALID
367#pragma region INTEGRATOR
408#pragma region ACCELERATOR
tpbrt_vec3_t tpbrt_rgb_t
RGB type.
Definition fwd.h:394
tpbrt_float_t tpbrt_blackbody_t
Blackbody temperature type.
Definition fwd.h:388
tpbrt_vec3_array_t tpbrt_rgb_array_t
Array of rgb type.
Definition fwd.h:399
unsigned char tpbrt_uchar_t
Unsigned char type.
Definition fwd.h:56
char tpbrt_char_t
Char type.
Definition fwd.h:51
tpbrt_idx_t tpbrt_area_light_idx_t
Area light index type.
Definition fwd.h:351
tpbrt_idx_t tpbrt_material_idx_t
Material index type.
Definition fwd.h:328
tpbrt_vec3_array_t tpbrt_normal3_array_t
Array of 3 component normals.
Definition fwd.h:205
tpbrt_vec3_t tpbrt_normal3_t
3 component normal.
Definition fwd.h:166
float tpbrt_float_t
Float type.
Definition fwd.h:83
long long tpbrt_longlong_t
Long long type.
Definition fwd.h:108
int32_t tpbrt_int_t
Int type.
Definition fwd.h:73
tpbrt_vec2_array_t tpbrt_point2_array_t
Array of 2 component points.
Definition fwd.h:182
size_t tpbrt_size_t
Size type.
Definition fwd.h:93
tpbrt_normal3_t tpbrt_normal_t
Normal.
Definition fwd.h:171
tpbrt_point3_t tpbrt_point_t
Point.
Definition fwd.h:161
tpbrt_normal3_array_t tpbrt_normal_array_t
Array of normals.
Definition fwd.h:210
tpbrt_vec3_t tpbrt_vec_t
Vector.
Definition fwd.h:151
double tpbrt_double_t
Double type.
Definition fwd.h:88
tpbrt_uint_t tpbrt_idx_t
Index type.
Definition fwd.h:119
tpbrt_vec3_t tpbrt_point3_t
3 component point.
Definition fwd.h:156
long tpbrt_long_t
Long type.
Definition fwd.h:98
tpbrt_vec2_t tpbrt_point2_t
2 component point.
Definition fwd.h:143
uint32_t tpbrt_uint_t
Unsigned int type.
Definition fwd.h:78
tpbrt_vec3_array_t tpbrt_point3_array_t
Array of 3 component points.
Definition fwd.h:195
unsigned long tpbrt_ulong_t
Unsigned long type.
Definition fwd.h:103
tpbrt_point3_array_t tpbrt_point_array_t
Array of points.
Definition fwd.h:200
unsigned long long tpbrt_ulonglong_t
Unsigned long long type.
Definition fwd.h:113
tpbrt_vec4_t tpbrt_mat4_row_t
4 by 4 matrix row type.
Definition fwd.h:216
tpbrt_vec3_array_t tpbrt_vec_array_t
Array of vectors.
Definition fwd.h:190
uint8_t tpbrt_bool_t
Bool type.
Definition fwd.h:68
tpbrt_idx_t tpbrt_object_idx_t
Object index type.
Definition fwd.h:284
tpbrt_idx_t tpbrt_texture_idx_t
Texture index type.
Definition fwd.h:247
PBRT Accelerator representation.
Definition accelerator.h:78
Area light handle.
Definition light.h:207
PBRT area light representation.
Definition light.h:185
List of area lights.
Definition light.h:227
Array of bool values.
Definition math.h:31
PBRT Camera representation.
Definition camera.h:159
PBRT film representation.
Definition film.h:105
PBRT filter representation.
Definition filter.h:68
Array of float values.
Definition math.h:64
Array of int values.
Definition math.h:42
PBRT integrator representation.
Definition integrator.h:192
PBRT light source representation.
Definition light.h:125
List of all types of lights.
Definition light.h:238
List of light sources.
Definition light.h:216
Two 4 by 4 row-major matrices used for animations.
Definition math.h:219
4 by 4 row-major matrix.
Definition math.h:181
Material handle.
Definition material.h:59
PBRT material representation.
Definition material.h:376
List of materials.
Definition material.h:416
Object handle.
Definition object.h:50
PBRT object instance representation.
Definition object_instance.h:23
PBRT object representation.
Definition object.h:24
List of object instances.
Definition object_instance.h:34
List of objects.
Definition object.h:37
Optional float value.
Definition math.h:20
PBRT options representation.
Definition options.h:23
PBRT sampler representation.
Definition sampler.h:124
PBRT scene representation.
Definition scene.h:38
PBRT shape representation.
Definition shape.h:218
List of shapes.
Definition shape.h:261
PBRT Spectrum representation.
Definition color.h:166
Array of strings.
Definition common.h:31
Simple string representation (not always terminated with '\0', the size determines the length of the ...
Definition common.h:20
Texture handle.
Definition texture.h:39
PBRT texture representation.
Definition texture.h:376
List of textures.
Definition texture.h:435
Array of uint values.
Definition math.h:53
Array of 2 component vectors.
Definition math.h:159
2 component vector.
Definition math.h:75
Array of 3 component vectors.
Definition math.h:170
3 component vector.
Definition math.h:98
4 component vector.
Definition math.h:126
Array of wavelengths pairs.
Definition color.h:72
Representation of wavelength pair.
Definition color.h:61