context.cpp File Reference

#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 Documentation

#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   ) 


Generated on Mon May 18 07:13:20 2009 for lux by  doxygen 1.5.8