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

Go to the source code of this file.

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...
 

Namespaces

namespace  tpbrt
 

Macros

#define _TINYPBRT_SHAPE_HPP_
 

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.
 

Macro Definition Documentation

◆ _TINYPBRT_SHAPE_HPP_

#define _TINYPBRT_SHAPE_HPP_