#include "pbrt.h"
Go to the source code of this file.
Functions | |
void | pbrtInit (const Options &opt) |
void | pbrtCleanup () |
void | pbrtIdentity () |
void | pbrtTranslate (float dx, float dy, float dz) |
void | pbrtRotate (float angle, float ax, float ay, float az) |
void | pbrtScale (float sx, float sy, float sz) |
void | pbrtLookAt (float ex, float ey, float ez, float lx, float ly, float lz, float ux, float uy, float uz) |
void | pbrtConcatTransform (float transform[16]) |
void | pbrtTransform (float transform[16]) |
void | pbrtCoordinateSystem (const string &) |
void | pbrtCoordSysTransform (const string &) |
void | pbrtActiveTransformAll () |
void | pbrtActiveTransformEndTime () |
void | pbrtActiveTransformStartTime () |
void | pbrtTransformTimes (float start, float end) |
void | pbrtPixelFilter (const string &name, const ParamSet ¶ms) |
void | pbrtFilm (const string &type, const ParamSet ¶ms) |
void | pbrtSampler (const string &name, const ParamSet ¶ms) |
void | pbrtAccelerator (const string &name, const ParamSet ¶ms) |
void | pbrtSurfaceIntegrator (const string &name, const ParamSet ¶ms) |
void | pbrtVolumeIntegrator (const string &name, const ParamSet ¶ms) |
void | pbrtRenderer (const string &name, const ParamSet ¶ms) |
void | pbrtCamera (const string &, const ParamSet &cameraParams) |
void | pbrtWorldBegin () |
void | pbrtAttributeBegin () |
void | pbrtAttributeEnd () |
void | pbrtTransformBegin () |
void | pbrtTransformEnd () |
void | pbrtTexture (const string &name, const string &type, const string &texname, const ParamSet ¶ms) |
void | pbrtMaterial (const string &name, const ParamSet ¶ms) |
void | pbrtMakeNamedMaterial (const string &name, const ParamSet ¶ms) |
void | pbrtNamedMaterial (const string &name) |
void | pbrtLightSource (const string &name, const ParamSet ¶ms) |
void | pbrtAreaLightSource (const string &name, const ParamSet ¶ms) |
void | pbrtShape (const string &name, const ParamSet ¶ms) |
void | pbrtReverseOrientation () |
void | pbrtVolume (const string &name, const ParamSet ¶ms) |
void | pbrtObjectBegin (const string &name) |
void | pbrtObjectEnd () |
void | pbrtObjectInstance (const string &name) |
void | pbrtWorldEnd () |
void pbrtAccelerator | ( | const string & | name, | |
const ParamSet & | params | |||
) |
Definition at line 809 of file api.cpp.
References RenderOptions::AcceleratorName, RenderOptions::AcceleratorParams, and VERIFY_OPTIONS.
void pbrtActiveTransformAll | ( | ) |
Definition at line 766 of file api.cpp.
References activeTransformBits, and ALL_TRANSFORMS_BITS.
void pbrtActiveTransformEndTime | ( | ) |
Definition at line 771 of file api.cpp.
References activeTransformBits, and END_TRANSFORM_BITS.
void pbrtActiveTransformStartTime | ( | ) |
Definition at line 776 of file api.cpp.
References activeTransformBits, and START_TRANSFORM_BITS.
void pbrtAreaLightSource | ( | const string & | name, | |
const ParamSet & | params | |||
) |
Definition at line 973 of file api.cpp.
References GraphicsState::areaLight, GraphicsState::areaLightParams, and VERIFY_WORLD.
void pbrtAttributeBegin | ( | ) |
Definition at line 856 of file api.cpp.
References activeTransformBits, pushedActiveTransformBits, pushedGraphicsStates, pushedTransforms, and VERIFY_WORLD.
Referenced by pbrtObjectBegin().
void pbrtAttributeEnd | ( | ) |
Definition at line 864 of file api.cpp.
References activeTransformBits, Error(), pushedActiveTransformBits, pushedGraphicsStates, pushedTransforms, and VERIFY_WORLD.
Referenced by pbrtObjectEnd().
void pbrtCamera | ( | const string & | , | |
const ParamSet & | cameraParams | |||
) |
Definition at line 837 of file api.cpp.
References RenderOptions::CameraName, RenderOptions::CameraParams, RenderOptions::CameraToWorld, Inverse(), namedCoordinateSystems, and VERIFY_OPTIONS.
void pbrtCleanup | ( | ) |
Definition at line 680 of file api.cpp.
References currentApiState, Error(), STATE_UNINITIALIZED, and STATE_WORLD_BLOCK.
Referenced by main().
void pbrtConcatTransform | ( | float | transform[16] | ) |
Definition at line 716 of file api.cpp.
References FOR_ACTIVE_TRANSFORMS, and VERIFY_INITIALIZED.
void pbrtCoordinateSystem | ( | const string & | ) |
Definition at line 749 of file api.cpp.
References namedCoordinateSystems, and VERIFY_INITIALIZED.
void pbrtCoordSysTransform | ( | const string & | ) |
Definition at line 755 of file api.cpp.
References namedCoordinateSystems, VERIFY_INITIALIZED, and Warning().
void pbrtFilm | ( | const string & | type, | |
const ParamSet & | params | |||
) |
Definition at line 795 of file api.cpp.
References RenderOptions::FilmName, RenderOptions::FilmParams, and VERIFY_OPTIONS.
void pbrtIdentity | ( | ) |
Definition at line 693 of file api.cpp.
References FOR_ACTIVE_TRANSFORMS, and VERIFY_INITIALIZED.
void pbrtInit | ( | const Options & | opt | ) |
Definition at line 668 of file api.cpp.
References currentApiState, Error(), SampledSpectrum::Init(), STATE_OPTIONS_BLOCK, and STATE_UNINITIALIZED.
Referenced by main().
void pbrtLightSource | ( | const string & | name, | |
const ParamSet & | params | |||
) |
Definition at line 962 of file api.cpp.
References Error(), RenderOptions::lights, MakeLight(), VERIFY_WORLD, and WARN_IF_ANIMATED_TRANSFORM.
void pbrtLookAt | ( | float | ex, | |
float | ey, | |||
float | ez, | |||
float | lx, | |||
float | ly, | |||
float | lz, | |||
float | ux, | |||
float | uy, | |||
float | uz | |||
) |
Definition at line 738 of file api.cpp.
References FOR_ACTIVE_TRANSFORMS, LookAt(), VERIFY_INITIALIZED, and Warning().
void pbrtMakeNamedMaterial | ( | const string & | name, | |
const ParamSet & | params | |||
) |
Definition at line 938 of file api.cpp.
References Error(), TextureParams::FindString(), GraphicsState::floatTextures, MakeMaterial(), GraphicsState::materialParams, GraphicsState::namedMaterials, GraphicsState::spectrumTextures, VERIFY_WORLD, and WARN_IF_ANIMATED_TRANSFORM.
void pbrtMaterial | ( | const string & | name, | |
const ParamSet & | params | |||
) |
Definition at line 930 of file api.cpp.
References GraphicsState::currentNamedMaterial, GraphicsState::material, GraphicsState::materialParams, and VERIFY_WORLD.
void pbrtNamedMaterial | ( | const string & | name | ) |
Definition at line 956 of file api.cpp.
References GraphicsState::currentNamedMaterial, and VERIFY_WORLD.
void pbrtObjectBegin | ( | const string & | name | ) |
Definition at line 1086 of file api.cpp.
References RenderOptions::currentInstance, Error(), RenderOptions::instances, pbrtAttributeBegin(), and VERIFY_WORLD.
void pbrtObjectEnd | ( | ) |
Definition at line 1096 of file api.cpp.
References RenderOptions::currentInstance, Error(), pbrtAttributeEnd(), and VERIFY_WORLD.
void pbrtObjectInstance | ( | const string & | name | ) |
Definition at line 1105 of file api.cpp.
References RenderOptions::AcceleratorName, RenderOptions::AcceleratorParams, Assert, RenderOptions::currentInstance, Error(), RenderOptions::instances, TransformCache::Lookup(), MakeAccelerator(), MAX_TRANSFORMS, RenderOptions::primitives, Severe(), RenderOptions::transformEndTime, RenderOptions::transformStartTime, and VERIFY_WORLD.
void pbrtPixelFilter | ( | const string & | name, | |
const ParamSet & | params | |||
) |
Definition at line 788 of file api.cpp.
References RenderOptions::FilterName, RenderOptions::FilterParams, and VERIFY_OPTIONS.
void pbrtRenderer | ( | const string & | name, | |
const ParamSet & | params | |||
) |
Definition at line 830 of file api.cpp.
References RenderOptions::RendererName, RenderOptions::RendererParams, and VERIFY_OPTIONS.
void pbrtReverseOrientation | ( | ) |
Definition at line 1071 of file api.cpp.
References GraphicsState::reverseOrientation, and VERIFY_WORLD.
void pbrtRotate | ( | float | angle, | |
float | ax, | |||
float | ay, | |||
float | az | |||
) |
Definition at line 726 of file api.cpp.
References FOR_ACTIVE_TRANSFORMS, Rotate(), and VERIFY_INITIALIZED.
void pbrtSampler | ( | const string & | name, | |
const ParamSet & | params | |||
) |
Definition at line 802 of file api.cpp.
References RenderOptions::SamplerName, RenderOptions::SamplerParams, and VERIFY_OPTIONS.
void pbrtScale | ( | float | sx, | |
float | sy, | |||
float | sz | |||
) |
Definition at line 732 of file api.cpp.
References FOR_ACTIVE_TRANSFORMS, Scale(), and VERIFY_INITIALIZED.
void pbrtShape | ( | const string & | name, | |
const ParamSet & | params | |||
) |
Definition at line 981 of file api.cpp.
References GraphicsState::areaLight, GraphicsState::areaLightParams, Assert, GraphicsState::CreateMaterial(), RenderOptions::currentInstance, TransformSet::IsAnimated(), RenderOptions::lights, TransformCache::Lookup(), MakeAreaLight(), MakeShape(), MAX_TRANSFORMS, RenderOptions::primitives, ParamSet::ReportUnused(), GraphicsState::reverseOrientation, RenderOptions::transformEndTime, RenderOptions::transformStartTime, VERIFY_WORLD, and Warning().
void pbrtSurfaceIntegrator | ( | const string & | name, | |
const ParamSet & | params | |||
) |
Definition at line 816 of file api.cpp.
References RenderOptions::SurfIntegratorName, RenderOptions::SurfIntegratorParams, and VERIFY_OPTIONS.
void pbrtTexture | ( | const string & | name, | |
const string & | type, | |||
const string & | texname, | |||
const ParamSet & | params | |||
) |
Definition at line 901 of file api.cpp.
References Error(), GraphicsState::floatTextures, Info(), MakeFloatTexture(), MakeSpectrumTexture(), GraphicsState::spectrumTextures, VERIFY_WORLD, and WARN_IF_ANIMATED_TRANSFORM.
void pbrtTransform | ( | float | transform[16] | ) |
Definition at line 706 of file api.cpp.
References FOR_ACTIVE_TRANSFORMS, and VERIFY_INITIALIZED.
void pbrtTransformBegin | ( | ) |
Definition at line 880 of file api.cpp.
References activeTransformBits, pushedActiveTransformBits, pushedTransforms, and VERIFY_WORLD.
void pbrtTransformEnd | ( | ) |
Definition at line 887 of file api.cpp.
References activeTransformBits, Error(), pushedActiveTransformBits, pushedTransforms, and VERIFY_WORLD.
void pbrtTransformTimes | ( | float | start, | |
float | end | |||
) |
Definition at line 781 of file api.cpp.
References RenderOptions::transformEndTime, RenderOptions::transformStartTime, and VERIFY_OPTIONS.
void pbrtTranslate | ( | float | dx, | |
float | dy, | |||
float | dz | |||
) |
Definition at line 699 of file api.cpp.
References FOR_ACTIVE_TRANSFORMS, Translate(), and VERIFY_INITIALIZED.
void pbrtVolume | ( | const string & | name, | |
const ParamSet & | params | |||
) |
Definition at line 1078 of file api.cpp.
References MakeVolumeRegion(), VERIFY_WORLD, RenderOptions::volumeRegions, and WARN_IF_ANIMATED_TRANSFORM.
void pbrtVolumeIntegrator | ( | const string & | name, | |
const ParamSet & | params | |||
) |
Definition at line 823 of file api.cpp.
References VERIFY_OPTIONS, RenderOptions::VolIntegratorName, and RenderOptions::VolIntegratorParams.
void pbrtWorldBegin | ( | ) |
Definition at line 846 of file api.cpp.
References activeTransformBits, ALL_TRANSFORMS_BITS, currentApiState, MAX_TRANSFORMS, namedCoordinateSystems, STATE_WORLD_BLOCK, and VERIFY_OPTIONS.
void pbrtWorldEnd | ( | ) |
Definition at line 1141 of file api.cpp.
References activeTransformBits, ALL_TRANSFORMS_BITS, TransformCache::Clear(), ImageTexture< Tmemory, Treturn >::ClearCache(), currentApiState, RenderOptions::MakeRenderer(), RenderOptions::MakeScene(), MAX_TRANSFORMS, namedCoordinateSystems, pushedGraphicsStates, pushedTransforms, Renderer::Render(), STATE_OPTIONS_BLOCK, TasksCleanup(), VERIFY_WORLD, and Warning().