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

Data Structures

struct  tpbrt::shape_bilinear_mesh_params
 C++ wrapper for tpbrt_shape_bilinear_mesh_params_t. More...
 
struct  tpbrt::shape_curve_params
 C++ wrapper for tpbrt_shape_curve_params_t. More...
 
struct  tpbrt::shape_cylinder_params
 C++ wrapper for tpbrt_shape_cylinder_params_t. More...
 
struct  tpbrt::shape_disk_params
 C++ wrapper for tpbrt_shape_disk_params_t. More...
 
struct  tpbrt::shape_sphere_params
 C++ wrapper for tpbrt_shape_sphere_params_t. More...
 
struct  tpbrt::shape_triangle_mesh_params
 C++ wrapper for tpbrt_shape_triangle_mesh_params_t. More...
 
struct  tpbrt::shape_ply_mesh_params
 C++ wrapper for tpbrt_shape_ply_mesh_params_t. More...
 
struct  tpbrt::shape_loop_subdiv_params
 C++ wrapper for tpbrt_shape_loop_subdiv_params_t. More...
 
struct  tpbrt::shape
 C++ wrapper for tpbrt_shape_t. More...
 
struct  tpbrt::shapes_list
 C++ wrapper for tpbrt_shapes_list_t. More...
 

Enumerations

enum class  tpbrt::shape_type : uchar_t {
  tpbrt::shape_type::BILINEAR_MESH = TPBRT_SHAPE_TYPE_BILINEAR_MESH , tpbrt::shape_type::CURVE = TPBRT_SHAPE_TYPE_CURVE , tpbrt::shape_type::CYLINDER = TPBRT_SHAPE_TYPE_CYLINDER , tpbrt::shape_type::DISK = TPBRT_SHAPE_TYPE_DISK ,
  tpbrt::shape_type::SPHERE = TPBRT_SHAPE_TYPE_SPHERE , tpbrt::shape_type::TRIANGLE_MESH = TPBRT_SHAPE_TYPE_TRIANGLE_MESH , tpbrt::shape_type::PLY_MESH = TPBRT_SHAPE_TYPE_PLY_MESH , tpbrt::shape_type::LOOP_SUBDIV = TPBRT_SHAPE_TYPE_LOOP_SUBDIV ,
  tpbrt::shape_type::MAX_NUM = TPBRT_SHAPE_TYPE_MAX_NUM
}
 Shape types. More...
 
enum class  tpbrt::shape_curve_basis : uchar_t { tpbrt::shape_curve_basis::BEZIER = TPBRT_SHAPE_CURVE_BASIS_BEZIER , tpbrt::shape_curve_basis::BSPLINE = TPBRT_SHAPE_CURVE_BASIS_BSPLINE , tpbrt::shape_curve_basis::MAX_NUM = TPBRT_SHAPE_CURVE_BASIS_MAX_NUM }
 Curve shape basis. More...
 
enum class  tpbrt::shape_curve_degree : uchar_t { tpbrt::shape_curve_degree::DEGREE_2 = TPBRT_SHAPE_CURVE_DEGREE_2 , tpbrt::shape_curve_degree::DEGREE_3 = TPBRT_SHAPE_CURVE_DEGREE_3 }
 Curve shape degree. More...
 
enum class  tpbrt::shape_curve_type : uchar_t { tpbrt::shape_curve_type::FLAT = TPBRT_SHAPE_CURVE_TYPE_FLAT , tpbrt::shape_curve_type::CYLINDER = TPBRT_SHAPE_CURVE_TYPE_CYLINDER , tpbrt::shape_curve_type::RIBBON = TPBRT_SHAPE_CURVE_TYPE_RIBBON , tpbrt::shape_curve_type::MAX_NUM = TPBRT_SHAPE_CURVE_TYPE_MAX_NUM }
 Curve shape type. More...
 

Functions

constexpr std::string_view tpbrt::to_string (const shape_type type) noexcept
 Converts shape_type enum value to string.
 
constexpr std::string_view tpbrt::to_string (const shape_curve_basis basis) noexcept
 Converts shape_curve_basis enum value to string.
 
constexpr std::string_view tpbrt::to_string (const shape_curve_degree degree) noexcept
 Converts shape_curve_degree enum value to string.
 
constexpr std::string_view tpbrt::to_string (const shape_curve_type type) noexcept
 Converts shape_curve_type enum value to string.
 

Detailed Description

Enumeration Type Documentation

◆ shape_type

enum class tpbrt::shape_type : uchar_t
strong

Shape types.

Enumerator
BILINEAR_MESH 

Bilinear mesh.

CURVE 

Curve.

CYLINDER 

Cylinder.

DISK 

Disk.

SPHERE 

Sphere.

TRIANGLE_MESH 

Triangle mesh.

PLY_MESH 

Ply file mesh.

LOOP_SUBDIV 

Loop subdivision.

MAX_NUM 

Count of available shape types.

◆ shape_curve_basis

enum class tpbrt::shape_curve_basis : uchar_t
strong

Curve shape basis.

Enumerator
BEZIER 

Bezier curve.

BSPLINE 

BSpline curve.

MAX_NUM 

Count of available curve shape basis.

◆ shape_curve_degree

enum class tpbrt::shape_curve_degree : uchar_t
strong

Curve shape degree.

Enumerator
DEGREE_2 

2 Degree.

DEGREE_3 

3 Degree.

◆ shape_curve_type

enum class tpbrt::shape_curve_type : uchar_t
strong

Curve shape type.

Enumerator
FLAT 

Curve is always oriented to face the incident ray.

CYLINDER 

Alternative includes a shading normal that causes the curve to appear to have a cylindrical cross section.

RIBBON 

Curve has a fixed orientation.

MAX_NUM 

Count of available curve types.

Function Documentation

◆ to_string() [1/4]

constexpr std::string_view tpbrt::to_string ( const shape_type  type)
constexprnoexcept

Converts shape_type enum value to string.

Parameters
typeShape type.
Returns
String value of shape type.

◆ to_string() [2/4]

constexpr std::string_view tpbrt::to_string ( const shape_curve_basis  basis)
constexprnoexcept

Converts shape_curve_basis enum value to string.

Parameters
basisShape curve basis.
Returns
String value of shape curve basis.

◆ to_string() [3/4]

constexpr std::string_view tpbrt::to_string ( const shape_curve_degree  degree)
constexprnoexcept

Converts shape_curve_degree enum value to string.

Parameters
degreeShape curve degree.
Returns
String value of shape curve degree.

◆ to_string() [4/4]

constexpr std::string_view tpbrt::to_string ( const shape_curve_type  type)
constexprnoexcept

Converts shape_curve_type enum value to string.

Parameters
typeShape curve type.
Returns
String value of shape curve type.