#include "renderfarm.h"
#include "lux.h"
#include "context.h"
#include "dynload.h"
#include "api.h"
#include "camera.h"
#include "light.h"
#include "primitive.h"
#include "scene.h"
#include "volume.h"
#include "material.h"
#include "stats.h"
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/iostreams/filtering_streambuf.hpp>
#include <boost/iostreams/copy.hpp>
#include <boost/iostreams/filter/zlib.hpp>
Go to the source code of this file.
Defines | |
#define | VERIFY_INITIALIZED(func) |
#define | VERIFY_OPTIONS(func) |
#define | VERIFY_WORLD(func) |
#define VERIFY_INITIALIZED | ( | func | ) |
Value:
if (currentApiState == STATE_UNINITIALIZED) { \ std::stringstream ss; \ ss<<"luxInit() must be called before calling '"<<func<<"'. Ignoring."; \ luxError(LUX_NOTSTARTED,LUX_SEVERE,ss.str().c_str()); \ return; \ } else
Definition at line 49 of file context.cpp.
Referenced by lux::Context::concatTransform(), lux::Context::coordinateSystem(), lux::Context::coordSysTransform(), lux::Context::identity(), lux::Context::lookAt(), lux::Context::rotate(), lux::Context::scale(), lux::Context::transform(), and lux::Context::translate().
#define VERIFY_OPTIONS | ( | func | ) |
Value:
VERIFY_INITIALIZED(func); \ if (currentApiState == STATE_WORLD_BLOCK) { \ std::stringstream ss; \ ss<<"Options cannot be set inside world block; '"<<func<<"' not allowed. Ignoring."; \ luxError(LUX_NESTING,LUX_ERROR,ss.str().c_str()); \ return; \ } else
Definition at line 56 of file context.cpp.
Referenced by lux::Context::accelerator(), lux::Context::camera(), lux::Context::enableDebugMode(), lux::Context::film(), lux::Context::pixelFilter(), lux::Context::sampler(), lux::Context::surfaceIntegrator(), lux::Context::volumeIntegrator(), and lux::Context::worldBegin().
#define VERIFY_WORLD | ( | func | ) |
Value:
VERIFY_INITIALIZED(func); \ if (currentApiState == STATE_OPTIONS_BLOCK) { \ std::stringstream ss; \ ss<<"Scene description must be inside world block; '"<<func<<"' not allowed. Ignoring."; \ luxError(LUX_NESTING,LUX_ERROR,ss.str().c_str()); \ return; \ } else
Definition at line 64 of file context.cpp.
Referenced by lux::Context::areaLightSource(), lux::Context::attributeBegin(), lux::Context::attributeEnd(), lux::Context::lightSource(), lux::Context::makenamedmaterial(), lux::Context::material(), lux::Context::namedmaterial(), lux::Context::objectBegin(), lux::Context::objectEnd(), lux::Context::objectInstance(), lux::Context::portalShape(), lux::Context::reverseOrientation(), lux::Context::shape(), lux::Context::texture(), lux::Context::transformBegin(), lux::Context::transformEnd(), lux::Context::volume(), and lux::Context::worldEnd().