#include <sstream>
#include "lux.h"
#include "api.h"
#include "error.h"
#include "luxparse.hpp"
Go to the source code of this file.
Classes | |
class | lux::random::RandomGenerator |
struct | IncludeInfo |
Namespaces | |
namespace | lux |
namespace | lux::random |
namespace | boost |
Defines | |
#define | YY_MAIN 0 |
#define | YY_NEVER_INTERACTIVE 1 |
Functions | |
void * | lux::AllocAligned (size_t size) |
void | lux::FreeAligned (void *) |
void | lux::random::init (int tn) |
float | lux::random::floatValue () |
unsigned long | lux::random::uintValue () |
float | lux::random::floatValueP () |
unsigned long | lux::random::uintValueP () |
void | luxInit () |
void | luxCleanup () |
bool | ParseFile (const char *filename) |
unsigned int | lux::DJBHash (const std::string &str) |
bool | lux::SolveLinearSystem2x2 (const float A[2][2], const float B[2], float x[2]) |
ImageData * | lux::ReadImage (const string &name) |
void | lux::WriteRGBAImage (const string &name, float *pixels, float *alpha, int xRes, int yRes, int totalXRes, int totalYRes, int xOffset, int yOffset) |
void | lux::WriteRGBAImageFloat (const string &name, float *pixels, float *alpha, int xRes, int yRes, int totalXRes, int totalYRes, int xOffset, int yOffset) |
void | lux::WriteIgiImage (const string &name, float *pixels, float *alpha, int xRes, int yRes, int totalXRes, int totalYRes, int xOffset, int yOffset) |
template<class T > | |
T | Lerp (float t, T v1, T v2) |
template<class T > | |
T | Clamp (T val, T low, T high) |
int | Mod (int a, int b) |
float | Radians (float deg) |
float | Degrees (float rad) |
float | Log2 (float x) |
int | Log2Int (float v) |
bool | IsPowerOf2 (int v) |
u_int | RoundUpPow2 (u_int v) |
int | Round2Int (double val) |
template<class T > | |
int | Float2Int (T val) |
template<class T > | |
int | Floor2Int (T val) |
template<class T > | |
int | Ceil2Int (T val) |
bool | Quadratic (float A, float B, float C, float *t0, float *t1) |
float | SmoothStep (float min, float max, float value) |
void | luxIdentity () |
void | luxTranslate (float dx, float dy, float dz) |
void | luxRotate (float angle, float ax, float ay, float az) |
void | luxScale (float sx, float sy, float sz) |
void | luxLookAt (float ex, float ey, float ez, float lx, float ly, float lz, float ux, float uy, float uz) |
void | luxConcatTransform (float transform[16]) |
void | luxTransform (float transform[16]) |
void | luxCoordinateSystem (const char *) |
void | luxCoordSysTransform (const char *) |
void | luxPixelFilter (const char *name,...) |
void | luxPixelFilterV (const char *name, int n, LuxToken tokens[], LuxPointer params[]) |
void | luxFilm (const char *name,...) |
void | luxFilmV (const char *name, int n, LuxToken tokens[], LuxPointer params[]) |
void | luxSampler (const char *name,...) |
void | luxSamplerV (const char *name, int n, LuxToken tokens[], LuxPointer params[]) |
void | luxAccelerator (const char *name,...) |
void | luxAcceleratorV (const char *name, int n, LuxToken tokens[], LuxPointer params[]) |
void | luxSurfaceIntegrator (const char *name,...) |
void | luxSurfaceIntegratorV (const char *name, int n, LuxToken tokens[], LuxPointer params[]) |
void | luxVolumeIntegrator (const char *name,...) |
void | luxVolumeIntegratorV (const char *name, int n, LuxToken tokens[], LuxPointer params[]) |
void | luxCamera (const char *name,...) |
void | luxCameraV (const char *name, int n, LuxToken tokens[], LuxPointer params[]) |
void | luxWorldBegin () |
void | luxAttributeBegin () |
void | luxAttributeEnd () |
void | luxTransformBegin () |
void | luxTransformEnd () |
void | luxTexture (const char *name, const char *type, const char *texname,...) |
void | luxTextureV (const char *name, const char *type, const char *texname, int n, LuxToken tokens[], LuxPointer params[]) |
void | luxMaterial (const char *name,...) |
void | luxMaterialV (const char *name, int n, LuxToken tokens[], LuxPointer params[]) |
void | luxMakeNamedMaterial (const char *name,...) |
void | luxMakeNamedMaterialV (const char *name, int n, LuxToken tokens[], LuxPointer params[]) |
void | luxNamedMaterial (const char *name,...) |
void | luxNamedMaterialV (const char *name, int n, LuxToken tokens[], LuxPointer params[]) |
void | luxLightSource (const char *name,...) |
void | luxLightSourceV (const char *name, int n, LuxToken tokens[], LuxPointer params[]) |
void | luxAreaLightSource (const char *name,...) |
void | luxAreaLightSourceV (const char *name, int n, LuxToken tokens[], LuxPointer params[]) |
void | luxPortalShape (const char *name,...) |
void | luxPortalShapeV (const char *name, int n, LuxToken tokens[], LuxPointer params[]) |
void | luxShape (const char *name,...) |
void | luxShapeV (const char *name, int n, LuxToken tokens[], LuxPointer params[]) |
void | luxReverseOrientation () |
void | luxVolume (const char *name,...) |
void | luxVolumeV (const char *name, int n, LuxToken tokens[], LuxPointer params[]) |
void | luxObjectBegin (const char *name) |
void | luxObjectEnd () |
void | luxObjectInstance (const char *name) |
void | luxWorldEnd () |
void | luxStart () |
void | luxPause () |
void | luxExit () |
void | luxWait () |
int | luxAddThread () |
void | luxRemoveThread () |
void | luxUpdateFramebuffer () |
unsigned char * | luxFramebuffer () |
void | luxAddServer (const char *name) |
void | luxUpdateFilmFromNetwork () |
void | luxSetNetworkServerUpdateInterval (int updateInterval) |
int | luxGetNetworkServerUpdateInterval () |
double | luxStatistics (const char *statName) |
void | luxEnableDebugMode () |
void | luxErrorHandler (LuxErrorHandler handler) |
void | luxErrorAbort (int code, int severity, const char *message) |
void | luxErrorIgnore (int code, int severity, const char *message) |
void | luxErrorPrint (int code, int severity, const char *message) |
void | boost::assertion_failed (char const *expr, char const *function, char const *file, long line) |
void | add_string_char (char c) |
void | yyerror (const char *str) |
void | include_push (char *filename) |
void | include_pop (void) |
option nounput WHITESPACE[\t\0xa] | NUMBER ([0-9]+|(([0-9]+\.[0-9]*)|(\.[0-9]+)))([eE][-+]?[0-9]+)?IDENT[a-zA-Z_][a-zA-Z_0-9]*%x STR COMMENT INCL INCL_FILE%%Include |
Variables | |
boost::thread_specific_ptr < RandomGenerator > | lux::random::myGen |
static const float | lux::random::invUI = ((float)1.0/(float)4294967296.0) |
static RandomGenerator * | lux::random::PGen |
vector< IncludeInfo > | includeStack |
int | line_num |
int | str_pos |
< INCL > | WHITESPACE |
int Ceil2Int | ( | T | val | ) | [inline] |
Definition at line 402 of file lux.h.
References _doublemagicroundeps, and Round2Int().
Referenced by lux::ImageFilm::AddSample(), lux::MIPMapImpl< T, U >::EWA(), lux::FlexImageFilm::FlexImageFilm(), lux::ImageFilm::ImageFilm(), lux::IrregularSPD::IrregularSPD(), lux::SingleScattering::Li(), lux::EmissionIntegrator::Li(), and lux::FlexImageFilm::MergeSampleArray().
T Clamp | ( | T | val, | |
T | low, | |||
T | high | |||
) | [inline] |
Definition at line 329 of file lux.h.
Referenced by lux::Cone::Cone(), lux::ImageFilm::CreateFilm(), lux::FlexImageFilm::CreateFilm(), lux::Cylinder::Cylinder(), lux::VolumeGrid::D(), lux::Disk::Disk(), lux::FresnelDielectric::Evaluate(), lux::MatteTranslucent::GetBSDF(), lux::Matte::GetBSDF(), lux::CarPaint::GetBSDF(), lux::GridAccel::GridAccel(), lux::Hyperboloid::Hyperboloid(), lux::IrradianceCache::IndirectLo(), lux::LensComponent::LensComponent(), lux::MIPMapImpl< T, U >::MIPMapImpl(), lux::Paraboloid::Paraboloid(), lux::InfiniteAreaLightIS::Pdf(), lux::GridAccel::PosToVoxel(), lux::InfiniteAreaLightIS::Sample_L(), SmoothStep(), lux::Sphere::Sphere(), lux::SphericalTheta(), lux::MIPMapImpl< T, U >::texelInternal(), lux::MIPMapImpl< T, U >::triangle(), and lux::ImageFilm::WriteImage().
int Float2Int | ( | T | val | ) | [inline] |
Definition at line 387 of file lux.h.
References _doublemagicroundeps, and Round2Int().
Referenced by lux::ApplyImagingPipeline(), lux::MIPMapImpl< T, U >::EWA(), lux::InfiniteAreaLightIS::Pdf(), lux::GridAccel::PosToVoxel(), lux::InfiniteAreaLightIS::Sample_L(), and lux::WeightedSampleOneLight().
int Floor2Int | ( | T | val | ) | [inline] |
Definition at line 395 of file lux.h.
References _doublemagicroundeps, and Round2Int().
Referenced by lux::ImageFilm::AddSample(), lux::ERPTSampler::AddSample(), lux::SkyLight::ChromaticityToSpectrum(), lux::VolumeGrid::Density(), lux::UVTexture::Evaluate(), lux::MarbleTexture::Evaluate(), lux::DotsTexture< T >::Evaluate(), lux::Checkerboard3D< T >::Evaluate(), lux::Checkerboard2D< T >::Evaluate(), lux::MIPMapImpl< T, U >::EWA(), lux::FBm(), lux::RandomPixelSampler::GetNextPixel(), lux::LowdiscrepancyPixelSampler::GetNextPixel(), lux::ImageFilm::GetSampleExtent(), lux::FlexImageFilm::GetSampleExtent(), lux::IrregularSPD::IrregularSPD(), lux::SingleScattering::Li(), lux::ParticleTracingIntegrator::Li(), lux::MLTPathIntegrator::Li(), lux::BidirIntegrator::Li(), lux::ExPhotonIntegrator::LiInternal(), lux::MIPMapImpl< T, U >::Lookup(), lux::FlexImageFilm::MergeSampleArray(), lux::MIPMapImpl< T, U >::nearest(), lux::Noise(), lux::PhotonIntegrator::Preprocess(), lux::IGIIntegrator::Preprocess(), lux::ExPhotonIntegrator::Preprocess(), lux::MIPMapImpl< T, U >::resampleWeights(), lux::SpectrumWavelengths::Sample(), lux::SPD::sample(), lux::BSDF::Sample_f(), lux::SkyLight::Sample_L(), lux::InfiniteAreaLight::Sample_L(), lux::MIPMapImpl< T, U >::triangle(), lux::Turbulence(), lux::UniformSampleOneLight(), update_Statistics(), lux::LuxGui::UpdateStatistics(), and lux::VegasPixelSampler::VegasPixelSampler().
void include_pop | ( | void | ) |
Definition at line 92 of file luxlex.l.
References YY_CURRENT_BUFFER, yy_delete_buffer(), and yy_switch_to_buffer().
bool IsPowerOf2 | ( | int | v | ) | [inline] |
Definition at line 360 of file lux.h.
Referenced by lux::Voxel::AddPrimitive(), lux::HaltonSampler::HaltonSampler(), lux::LDSampler::LDSampler(), and lux::MIPMapImpl< T, U >::MIPMapImpl().
T Lerp | ( | float | t, | |
T | v1, | |||
T | v2 | |||
) | [inline] |
Definition at line 326 of file lux.h.
Referenced by lux::ApplyImagingPipeline(), lux::ColorSystem::Constrain(), lux::VolumeGrid::Density(), lux::RealisticCamera::GenerateRay(), lux::PerspectiveCamera::GenerateRay(), lux::OrthoCamera::GenerateRay(), lux::EnvironmentCamera::GenerateRay(), lux::HighContrastOp::Map(), lux::Noise(), lux::NURBS::Refine(), lux::SpectrumWavelengths::Sample(), lux::SPD::sample(), lux::Cylinder::Sample(), lux::UniformSampleCone(), and lux::WeightedSampleOneLight().
float Log2 | ( | float | x | ) | [inline] |
Definition at line 349 of file lux.h.
Referenced by lux::FBm(), Log2Int(), lux::MIPMapImpl< T, U >::Lookup(), and lux::Turbulence().
int Log2Int | ( | float | v | ) | [inline] |
Definition at line 352 of file lux.h.
References _doublemagicroundeps, and Log2().
Referenced by lux::MIPMapImpl< T, U >::MIPMapImpl(), lux::TaBRecKdTreeAccel::TaBRecKdTreeAccel(), and lux::UnsafeKdTreeAccel::UnsafeKdTreeAccel().
void luxAccelerator | ( | const char * | name, | |
... | ||||
) |
Definition at line 177 of file api.cpp.
References EXTRACT_PARAMETERS, luxAcceleratorV(), and PASS_PARAMETERS.
Referenced by luxAcceleratorV(), and yyparse().
void luxAcceleratorV | ( | const char * | name, | |
int | n, | |||
LuxToken | tokens[], | |||
LuxPointer | params[] | |||
) |
Definition at line 183 of file api.cpp.
References luxAccelerator().
Referenced by luxAccelerator().
void luxAddServer | ( | const char * | name | ) |
Definition at line 79 of file api.cpp.
References luxAddServer().
Referenced by luxAddServer(), main(), and lux::LuxGuiApp::ProcessCommandLine().
int luxAddThread | ( | ) |
Definition at line 454 of file api.cpp.
References luxAddThread().
Referenced by AddThread(), luxAddThread(), main(), lux::LuxGui::OnTimer(), lux::NetworkRenderServerThread::run(), and lux::LuxGui::SetRenderThreads().
void luxAreaLightSource | ( | const char * | name, | |
... | ||||
) |
Definition at line 330 of file api.cpp.
References EXTRACT_PARAMETERS, luxAreaLightSourceV(), and PASS_PARAMETERS.
Referenced by luxAreaLightSourceV(), and yyparse().
void luxAreaLightSourceV | ( | const char * | name, | |
int | n, | |||
LuxToken | tokens[], | |||
LuxPointer | params[] | |||
) |
Definition at line 336 of file api.cpp.
References luxAreaLightSource().
Referenced by luxAreaLightSource().
void luxAttributeBegin | ( | ) |
Definition at line 241 of file api.cpp.
References luxAttributeBegin().
Referenced by luxAttributeBegin(), lux::NetworkRenderServerThread::run(), and yyparse().
void luxAttributeEnd | ( | ) |
Definition at line 245 of file api.cpp.
References luxAttributeEnd().
Referenced by luxAttributeEnd(), lux::NetworkRenderServerThread::run(), and yyparse().
void luxCamera | ( | const char * | name, | |
... | ||||
) |
Definition at line 226 of file api.cpp.
References EXTRACT_PARAMETERS, luxCameraV(), and PASS_PARAMETERS.
Referenced by luxCameraV(), and yyparse().
void luxCameraV | ( | const char * | name, | |
int | n, | |||
LuxToken | tokens[], | |||
LuxPointer | params[] | |||
) |
void luxCleanup | ( | ) |
Definition at line 84 of file api.cpp.
References luxCleanup().
Referenced by exit_cb(), luxCleanup(), main(), lux::LuxGui::OnExit(), and lux::NetworkRenderServerThread::run().
void luxConcatTransform | ( | float | transform[16] | ) |
Definition at line 101 of file api.cpp.
References luxConcatTransform().
Referenced by luxConcatTransform(), and yyparse().
void luxCoordinateSystem | ( | const char * | ) |
Definition at line 117 of file api.cpp.
References luxCoordinateSystem().
Referenced by luxCoordinateSystem(), and yyparse().
void luxCoordSysTransform | ( | const char * | ) |
Definition at line 121 of file api.cpp.
References luxCoordSysTransform().
Referenced by luxCoordSysTransform(), and yyparse().
void luxEnableDebugMode | ( | ) |
Definition at line 504 of file api.cpp.
References luxEnableDebugMode().
Referenced by luxEnableDebugMode(), main(), and lux::LuxGuiApp::ProcessCommandLine().
void luxErrorAbort | ( | int | code, | |
int | severity, | |||
const char * | message | |||
) |
void luxErrorHandler | ( | LuxErrorHandler | handler | ) |
void luxErrorIgnore | ( | int | code, | |
int | severity, | |||
const char * | message | |||
) |
void luxErrorPrint | ( | int | code, | |
int | severity, | |||
const char * | message | |||
) |
Definition at line 541 of file api.cpp.
References LUX_ERROR, LUX_INFO, LUX_SEVERE, LUX_WARNING, and luxLastError.
Referenced by luxErrorAbort().
void luxExit | ( | ) |
Definition at line 445 of file api.cpp.
References luxExit().
Referenced by exit_cb(), luxExit(), main(), lux::LuxGui::OnExit(), and lux::NetworkRenderServerThread::run().
void luxFilm | ( | const char * | name, | |
... | ||||
) |
Definition at line 143 of file api.cpp.
References EXTRACT_PARAMETERS, luxFilmV(), and PASS_PARAMETERS.
Referenced by luxFilmV(), and yyparse().
void luxFilmV | ( | const char * | name, | |
int | n, | |||
LuxToken | tokens[], | |||
LuxPointer | params[] | |||
) |
unsigned char* luxFramebuffer | ( | ) |
Definition at line 470 of file api.cpp.
References luxFramebuffer().
Referenced by bindFrameBuffer(), luxFramebuffer(), and lux::LuxOutputWin::OnDraw().
int luxGetNetworkServerUpdateInterval | ( | ) |
Definition at line 518 of file api.cpp.
References luxGetNetworkServerUpdateInterval().
Referenced by luxGetNetworkServerUpdateInterval(), main(), and lux::LuxGuiApp::ProcessCommandLine().
void luxIdentity | ( | ) |
Definition at line 89 of file api.cpp.
References luxIdentity().
Referenced by luxIdentity(), lux::NetworkRenderServerThread::run(), and yyparse().
void luxInit | ( | ) |
Definition at line 403 of file api.cpp.
References initialized, LUX_ERROR, LUX_ILLSTATE, and luxError.
Referenced by main(), and lux::LuxGuiApp::OnInit().
void luxLightSource | ( | const char * | name, | |
... | ||||
) |
Definition at line 315 of file api.cpp.
References EXTRACT_PARAMETERS, luxLightSourceV(), and PASS_PARAMETERS.
Referenced by luxLightSourceV(), and yyparse().
void luxLightSourceV | ( | const char * | name, | |
int | n, | |||
LuxToken | tokens[], | |||
LuxPointer | params[] | |||
) |
Definition at line 321 of file api.cpp.
References luxLightSource().
Referenced by luxLightSource().
void luxLookAt | ( | float | ex, | |
float | ey, | |||
float | ez, | |||
float | lx, | |||
float | ly, | |||
float | lz, | |||
float | ux, | |||
float | uy, | |||
float | uz | |||
) |
Definition at line 112 of file api.cpp.
References luxLookAt().
Referenced by luxLookAt(), lux::NetworkRenderServerThread::run(), and yyparse().
void luxMakeNamedMaterial | ( | const char * | name, | |
... | ||||
) |
Definition at line 289 of file api.cpp.
References EXTRACT_PARAMETERS, luxMakeNamedMaterialV(), and PASS_PARAMETERS.
Referenced by luxMakeNamedMaterialV(), and yyparse().
void luxMakeNamedMaterialV | ( | const char * | name, | |
int | n, | |||
LuxToken | tokens[], | |||
LuxPointer | params[] | |||
) |
Definition at line 295 of file api.cpp.
References luxMakeNamedMaterial().
Referenced by luxMakeNamedMaterial().
void luxMaterial | ( | const char * | name, | |
... | ||||
) |
Definition at line 278 of file api.cpp.
References EXTRACT_PARAMETERS, luxMaterialV(), and PASS_PARAMETERS.
Referenced by luxMaterialV(), and yyparse().
void luxMaterialV | ( | const char * | name, | |
int | n, | |||
LuxToken | tokens[], | |||
LuxPointer | params[] | |||
) |
void luxNamedMaterial | ( | const char * | name, | |
... | ||||
) |
Definition at line 300 of file api.cpp.
References EXTRACT_PARAMETERS, luxNamedMaterialV(), and PASS_PARAMETERS.
Referenced by luxNamedMaterialV(), and yyparse().
void luxNamedMaterialV | ( | const char * | name, | |
int | n, | |||
LuxToken | tokens[], | |||
LuxPointer | params[] | |||
) |
Definition at line 306 of file api.cpp.
References luxNamedMaterial().
Referenced by luxNamedMaterial().
void luxObjectBegin | ( | const char * | name | ) |
Definition at line 389 of file api.cpp.
References luxObjectBegin().
Referenced by luxObjectBegin(), and yyparse().
void luxObjectEnd | ( | ) |
Definition at line 392 of file api.cpp.
References luxObjectEnd().
Referenced by luxObjectEnd(), lux::NetworkRenderServerThread::run(), and yyparse().
void luxObjectInstance | ( | const char * | name | ) |
Definition at line 395 of file api.cpp.
References luxObjectInstance().
Referenced by luxObjectInstance(), and yyparse().
void luxPause | ( | ) |
Definition at line 441 of file api.cpp.
References luxPause().
Referenced by luxPause(), lux::LuxGui::OnMenu(), and RenderPause().
void luxPixelFilter | ( | const char * | name, | |
... | ||||
) |
Definition at line 125 of file api.cpp.
References EXTRACT_PARAMETERS, luxPixelFilterV(), and PASS_PARAMETERS.
Referenced by luxPixelFilterV(), and yyparse().
void luxPixelFilterV | ( | const char * | name, | |
int | n, | |||
LuxToken | tokens[], | |||
LuxPointer | params[] | |||
) |
Definition at line 131 of file api.cpp.
References luxPixelFilter().
Referenced by luxPixelFilter().
void luxPortalShape | ( | const char * | name, | |
... | ||||
) |
Definition at line 345 of file api.cpp.
References EXTRACT_PARAMETERS, luxPortalShapeV(), and PASS_PARAMETERS.
Referenced by luxPortalShapeV(), and yyparse().
void luxPortalShapeV | ( | const char * | name, | |
int | n, | |||
LuxToken | tokens[], | |||
LuxPointer | params[] | |||
) |
Definition at line 351 of file api.cpp.
References luxPortalShape().
Referenced by luxPortalShape().
void luxRemoveThread | ( | ) |
Definition at line 459 of file api.cpp.
References luxRemoveThread().
Referenced by luxRemoveThread(), RemoveThread(), and lux::LuxGui::SetRenderThreads().
void luxReverseOrientation | ( | ) |
Definition at line 371 of file api.cpp.
References luxReverseOrientation().
Referenced by luxReverseOrientation(), lux::NetworkRenderServerThread::run(), and yyparse().
void luxRotate | ( | float | angle, | |
float | ax, | |||
float | ay, | |||
float | az | |||
) |
Definition at line 104 of file api.cpp.
References luxRotate().
Referenced by luxRotate(), lux::NetworkRenderServerThread::run(), and yyparse().
void luxSampler | ( | const char * | name, | |
... | ||||
) |
Definition at line 161 of file api.cpp.
References EXTRACT_PARAMETERS, luxSamplerV(), and PASS_PARAMETERS.
Referenced by luxSamplerV(), and yyparse().
void luxSamplerV | ( | const char * | name, | |
int | n, | |||
LuxToken | tokens[], | |||
LuxPointer | params[] | |||
) |
void luxScale | ( | float | sx, | |
float | sy, | |||
float | sz | |||
) |
Definition at line 108 of file api.cpp.
References luxScale().
Referenced by luxScale(), and yyparse().
void luxSetNetworkServerUpdateInterval | ( | int | updateInterval | ) |
Definition at line 513 of file api.cpp.
References luxSetNetworkServerUpdateInterval().
Referenced by luxSetNetworkServerUpdateInterval(), main(), and lux::LuxGuiApp::ProcessCommandLine().
void luxShape | ( | const char * | name, | |
... | ||||
) |
Definition at line 360 of file api.cpp.
References EXTRACT_PARAMETERS, luxShapeV(), and PASS_PARAMETERS.
Referenced by luxShapeV(), and yyparse().
void luxShapeV | ( | const char * | name, | |
int | n, | |||
LuxToken | tokens[], | |||
LuxPointer | params[] | |||
) |
void luxStart | ( | ) |
Definition at line 437 of file api.cpp.
References luxStart().
Referenced by luxStart(), lux::LuxGui::OnMenu(), and RenderStart().
double luxStatistics | ( | const char * | statName | ) |
Definition at line 495 of file api.cpp.
References initialized, LUX_NOTSTARTED, LUX_SEVERE, luxError, and luxStatistics().
Referenced by bindFrameBuffer(), check_SceneReady(), Engine_Thread(), lux::LuxGui::EngineThread(), engineThread(), infoThread(), luxStatistics(), main(), lux::LuxOutputWin::OnDraw(), lux::LuxGui::OnMenu(), lux::LuxGui::OnTimer(), printInfoThread(), RenderScenefile(), lux::NetworkRenderServerThread::run(), lux::LuxGui::SetRenderThreads(), update_Statistics(), and lux::LuxGui::UpdateStatistics().
void luxSurfaceIntegrator | ( | const char * | name, | |
... | ||||
) |
Definition at line 192 of file api.cpp.
References EXTRACT_PARAMETERS, luxSurfaceIntegratorV(), and PASS_PARAMETERS.
Referenced by luxSurfaceIntegratorV(), and yyparse().
void luxSurfaceIntegratorV | ( | const char * | name, | |
int | n, | |||
LuxToken | tokens[], | |||
LuxPointer | params[] | |||
) |
Definition at line 198 of file api.cpp.
References luxSurfaceIntegrator().
Referenced by luxSurfaceIntegrator().
void luxTexture | ( | const char * | name, | |
const char * | type, | |||
const char * | texname, | |||
... | ||||
) |
Definition at line 263 of file api.cpp.
References EXTRACT_PARAMETERS, luxTextureV(), and PASS_PARAMETERS.
Referenced by luxTextureV(), lux::NetworkRenderServerThread::run(), and yyparse().
void luxTextureV | ( | const char * | name, | |
const char * | type, | |||
const char * | texname, | |||
int | n, | |||
LuxToken | tokens[], | |||
LuxPointer | params[] | |||
) |
void luxTransform | ( | float | transform[16] | ) |
Definition at line 97 of file api.cpp.
References luxTransform().
Referenced by luxTransform(), and yyparse().
void luxTransformBegin | ( | ) |
Definition at line 249 of file api.cpp.
References luxTransformBegin().
Referenced by luxTransformBegin(), lux::NetworkRenderServerThread::run(), and yyparse().
void luxTransformEnd | ( | ) |
Definition at line 253 of file api.cpp.
References luxTransformEnd().
Referenced by luxTransformEnd(), lux::NetworkRenderServerThread::run(), and yyparse().
void luxTranslate | ( | float | dx, | |
float | dy, | |||
float | dz | |||
) |
Definition at line 93 of file api.cpp.
References luxTranslate().
Referenced by luxTranslate(), and yyparse().
void luxUpdateFilmFromNetwork | ( | ) |
Definition at line 508 of file api.cpp.
References luxUpdateFilmFromNetwork().
Referenced by luxUpdateFilmFromNetwork().
void luxUpdateFramebuffer | ( | ) |
Definition at line 465 of file api.cpp.
References luxUpdateFramebuffer().
Referenced by luxUpdateFramebuffer(), merge_FrameBuffer_Thread(), and lux::LuxGui::UpdateThread().
void luxVolume | ( | const char * | name, | |
... | ||||
) |
Definition at line 378 of file api.cpp.
References EXTRACT_PARAMETERS, luxVolumeV(), and PASS_PARAMETERS.
Referenced by luxVolumeV(), and yyparse().
void luxVolumeIntegrator | ( | const char * | name, | |
... | ||||
) |
Definition at line 209 of file api.cpp.
References EXTRACT_PARAMETERS, luxVolumeIntegratorV(), and PASS_PARAMETERS.
Referenced by luxVolumeIntegratorV(), and yyparse().
void luxVolumeIntegratorV | ( | const char * | name, | |
int | n, | |||
LuxToken | tokens[], | |||
LuxPointer | params[] | |||
) |
Definition at line 215 of file api.cpp.
References luxVolumeIntegrator().
Referenced by luxVolumeIntegrator().
void luxVolumeV | ( | const char * | name, | |
int | n, | |||
LuxToken | tokens[], | |||
LuxPointer | params[] | |||
) |
void luxWait | ( | ) |
Definition at line 449 of file api.cpp.
References luxWait().
Referenced by Engine_Thread(), lux::LuxGui::EngineThread(), luxWait(), main(), and lux::NetworkRenderServerThread::run().
void luxWorldBegin | ( | ) |
Definition at line 237 of file api.cpp.
References luxWorldBegin().
Referenced by luxWorldBegin(), lux::NetworkRenderServerThread::run(), and yyparse().
void luxWorldEnd | ( | ) |
Definition at line 398 of file api.cpp.
References luxWorldEnd().
Referenced by luxWorldEnd(), lux::NetworkRenderServerThread::run(), and yyparse().
int Mod | ( | int | a, | |
int | b | |||
) | [inline] |
Definition at line 332 of file lux.h.
Referenced by lux::MIPMapImpl< T, U >::MIPMapImpl(), and lux::MIPMapImpl< T, U >::texelInternal().
option nounput WHITESPACE [ \t\0xa] NUMBER | ( | [0-9] +| | ([0-9]+\.[0-9]*)|(\.[0-9]+) | ) |
bool ParseFile | ( | const char * | filename | ) |
Definition at line 27 of file parser.cpp.
References current_file, cimg_library::cimg::fclose(), cimg_library::cimg::fopen(), line_num, LUX_NOFILE, LUX_SEVERE, luxError, cimg_library::cimg::strcmp(), yyin, and yyparse().
Referenced by Engine_Thread(), lux::LuxGui::EngineThread(), and engineThread().
bool Quadratic | ( | float | A, | |
float | B, | |||
float | C, | |||
float * | t0, | |||
float * | t1 | |||
) | [inline] |
Definition at line 409 of file lux.h.
References cimg_library::cimg::swap().
Referenced by lux::Sphere::Intersect(), lux::Paraboloid::Intersect(), lux::LensComponent::Intersect(), lux::Hyperboloid::Intersect(), lux::Cylinder::Intersect(), lux::Cone::Intersect(), lux::Sphere::IntersectP(), lux::Paraboloid::IntersectP(), lux::LensComponent::IntersectP(), lux::Hyperboloid::IntersectP(), lux::Cylinder::IntersectP(), and lux::Cone::IntersectP().
float Radians | ( | float | deg | ) | [inline] |
Definition at line 343 of file lux.h.
References M_PI.
Referenced by lux::Cone::Cone(), lux::Cylinder::Cylinder(), lux::Disk::Disk(), lux::ExPhotonIntegrator::ExPhotonIntegrator(), lux::Hyperboloid::Hyperboloid(), lux::LensComponent::LensComponent(), lux::OrenNayar::OrenNayar(), lux::Paraboloid::Paraboloid(), lux::Perspective(), lux::PerspectiveCamera::PerspectiveCamera(), lux::ProjectionLight::ProjectionLight(), lux::Rotate(), lux::RotateX(), lux::RotateY(), lux::RotateZ(), lux::Sphere::Sphere(), and lux::SpotLight::SpotLight().
int Round2Int | ( | double | val | ) | [inline] |
Definition at line 377 of file lux.h.
References _doublemagicroundeps.
Referenced by Ceil2Int(), Float2Int(), Floor2Int(), lux::GridAccel::GridAccel(), lux::TaBRecKdTreeAccel::TaBRecKdTreeAccel(), and lux::UnsafeKdTreeAccel::UnsafeKdTreeAccel().
Definition at line 363 of file lux.h.
Referenced by lux::HaltonSampler::HaltonSampler(), lux::IGIIntegrator::IGIIntegrator(), lux::LDSampler::LDSampler(), lux::MIPMapImpl< T, U >::MIPMapImpl(), lux::LDSampler::RoundSize(), and lux::HaltonSampler::RoundSize().
float SmoothStep | ( | float | min, | |
float | max, | |||
float | value | |||
) | [inline] |
Definition at line 424 of file lux.h.
References Clamp().
Referenced by lux::FBm(), lux::IGIIntegrator::Li(), and lux::Turbulence().
void yyerror | ( | const char * | str | ) |
vector<IncludeInfo> includeStack |
int line_num |
Definition at line 175 of file luxparse.cpp.
<INCL> WHITESPACE |