tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
Loading...
Searching...
No Matches
camera.h
Go to the documentation of this file.
1#pragma once
2#ifndef _TINYPBRT_CAMERA_H_
3#define _TINYPBRT_CAMERA_H_
4
6
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
36
51
68
81
90
103
122
139
154
186
187#ifdef __cplusplus
188}
189#endif
190#endif // _TINYPBRT_CAMERA_H_
tpbrt_camera_spherical_mapping_t
Spherical camera mapping.
Definition camera.h:73
tpbrt_camera_realistic_aperture_type_t
Realistic camera aperture value type.
Definition camera.h:95
tpbrt_camera_realistic_aperture_builtin_t
Realistic camera aperture builtin type.
Definition camera.h:108
tpbrt_camera_type_t
Used to declare camera type.
Definition camera.h:24
@ TPBRT_CAMERA_SPHERICAL_MAPPING_EQUI_RECTANGULAR
An equirectangular mapping.
Definition camera.h:77
@ TPBRT_CAMERA_SPHERICAL_MAPPING_EQUAL_AREA
An area-preserving mapping based on an octahedral encoding of the unit sphere is used.
Definition camera.h:75
@ TPBRT_CAMERA_SPHERICAL_MAPPING_MAX_NUM
Count of available spherical camera mappings.
Definition camera.h:79
@ TPBRT_CAMERA_REALISTIC_APERTURE_TYPE_BUILTIN
Aperture value is a builtin aperture.
Definition camera.h:99
@ TPBRT_CAMERA_REALISTIC_APERTURE_TYPE_MAX_NUM
Count of available realistic camera apertures.
Definition camera.h:101
@ TPBRT_CAMERA_REALISTIC_APERTURE_TYPE_FILE_NAME
Aperture will be read from given file specifying an image to be used to specify the shape.
Definition camera.h:97
@ TPBRT_CAMERA_REALISTIC_APERTURE_BUILTIN_GAUSSIAN
Gaussian aperture shape.
Definition camera.h:112
@ TPBRT_CAMERA_REALISTIC_APERTURE_BUILTIN_CIRCULAR
Circular aperture shape.
Definition camera.h:110
@ TPBRT_CAMERA_REALISTIC_APERTURE_BUILTIN_MAX_NUM
Count of available realistic camera builtin apertures.
Definition camera.h:120
@ TPBRT_CAMERA_REALISTIC_APERTURE_BUILTIN_SQUARE
Square aperture shape.
Definition camera.h:114
@ TPBRT_CAMERA_REALISTIC_APERTURE_BUILTIN_PENTAGON
Pentagon aperture shape.
Definition camera.h:116
@ TPBRT_CAMERA_REALISTIC_APERTURE_BUILTIN_STAR
Star aperture shape.
Definition camera.h:118
@ TPBRT_CAMERA_TYPE_PERSPECTIVE
Perspective camera.
Definition camera.h:28
@ TPBRT_CAMERA_TYPE_MAX_NUM
Count of available camera types.
Definition camera.h:34
@ TPBRT_CAMERA_TYPE_SPHERICAL
Spherical camera.
Definition camera.h:32
@ TPBRT_CAMERA_TYPE_REALISTIC
Realistic camera.
Definition camera.h:30
@ TPBRT_CAMERA_TYPE_ORTHOGRAPHIC
Orthographic camera.
Definition camera.h:26
float tpbrt_float_t
Float type.
Definition fwd.h:83
Orthographic camera parameters.
Definition camera.h:41
tpbrt_float_t screen_window[4]
The bounds of the film plane in screen space.
Definition camera.h:45
tpbrt_float_t lens_radius
The radius of the lens.
Definition camera.h:47
tpbrt_float_t focal_distance
The focal distance of the lens. If "lensradius" is zero, this has no effect. Otherwise,...
Definition camera.h:49
tpbrt_float_t frame_aspect_ratio
The aspect ratio of the film.
Definition camera.h:43
Perspective camera parameters.
Definition camera.h:56
tpbrt_float_t focal_distance
The focal distance of the lens. If "lensradius" is zero, this has no effect. Otherwise,...
Definition camera.h:64
tpbrt_float_t screen_window[4]
The bounds of the film plane in screen space.
Definition camera.h:60
tpbrt_float_t frame_aspect_ratio
The aspect ratio of the film.
Definition camera.h:58
tpbrt_float_t fov
Specifies the field of view for the perspective camera. This is the spread angle of the viewing frust...
Definition camera.h:66
tpbrt_float_t lens_radius
The radius of the lens.
Definition camera.h:62
Realistic camera aperture.
Definition camera.h:127
tpbrt_camera_realistic_aperture_builtin_t builtin
Aperture builtin type.
Definition camera.h:131
tpbrt_camera_realistic_aperture_type_t type
Aperture value type.
Definition camera.h:137
union tpbrt_camera_realistic_aperture_t::@1 as
Initialized value depends on type value.
tpbrt_string_t file_name
File specifying an image to be used to specify the shape.
Definition camera.h:133
Realistic camera parameters.
Definition camera.h:144
tpbrt_float_t focus_distance
Distance in meters at which the lens system is focused.
Definition camera.h:150
tpbrt_string_t lens_file
Specifies the name of a lens description file that gives the collection of lens elements in the lens ...
Definition camera.h:146
tpbrt_camera_realistic_aperture_t aperture
Allows specifying the shape of the camera aperture.
Definition camera.h:152
tpbrt_float_t aperture_diameter
Diameter of the lens system's aperture, specified in mm. The smaller the aperture,...
Definition camera.h:148
Spherical camera parameters.
Definition camera.h:86
tpbrt_camera_spherical_mapping_t mapping
mapping type.
Definition camera.h:88
PBRT Camera representation.
Definition camera.h:159
tpbrt_float_t shutter_close
The time at which the virtual camera shutter closes.
Definition camera.h:163
tpbrt_camera_perspective_params_t perspective
Perspective camera parameters.
Definition camera.h:176
tpbrt_media_handle_t exterior_media_handle
Exterior media handle.
Definition camera.h:169
union tpbrt_camera_t::@2 as
Initialized value depends on current type value.
tpbrt_transform_animated_t transform
Transform handle.
Definition camera.h:165
tpbrt_media_handle_t interior_media_handle
Interior media handle.
Definition camera.h:167
tpbrt_camera_type_t type
Camera type.
Definition camera.h:184
tpbrt_float_t shutter_open
The time at which the virtual camera shutter opens.
Definition camera.h:161
tpbrt_camera_realistic_params_t realistic
Realistic camera parameters.
Definition camera.h:180
tpbrt_camera_orthographic_params_t orthographic
Orthographic camera parameters.
Definition camera.h:174
tpbrt_camera_spherical_params_t spherical
Spherical camera parameters.
Definition camera.h:178
Media handle.
Definition media.h:238
Simple string representation (not always terminated with '\0', the size determines the length of the ...
Definition common.h:20
Animated transform.
Definition transform.h:32