luxlex.l File Reference

#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 >
Lerp (float t, T v1, T v2)
template<class 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 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< IncludeInfoincludeStack
int line_num
int str_pos
< INCL > WHITESPACE

Define Documentation

#define YY_MAIN   0

Definition at line 27 of file luxlex.l.

#define YY_NEVER_INTERACTIVE   1

Definition at line 28 of file luxlex.l.


Function Documentation

void add_string_char ( char  c  ) 

Definition at line 59 of file luxlex.l.

template<class T >
int Ceil2Int ( val  )  [inline]
template<class T >
T Clamp ( val,
low,
high 
) [inline]
float Degrees ( float  rad  )  [inline]

Definition at line 346 of file luxlex.l.

template<class T >
int Float2Int ( val  )  [inline]
template<class T >
int Floor2Int ( val  )  [inline]
void include_pop ( void   ) 

Definition at line 92 of file luxlex.l.

References YY_CURRENT_BUFFER, yy_delete_buffer(), and yy_switch_to_buffer().

void include_push ( char *  filename  ) 

Definition at line 68 of file luxlex.l.

bool IsPowerOf2 ( int  v  )  [inline]
template<class T >
T Lerp ( float  t,
v1,
v2 
) [inline]
float Log2 ( float  x  )  [inline]

Definition at line 349 of file luxlex.l.

Referenced by lux::MIPMapImpl< T, U >::Lookup().

int Log2Int ( float  v  )  [inline]
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 luxInit (  ) 

Definition at line 403 of file api.cpp.

References initialized, LUX_ERROR, LUX_ILLSTATE, and luxError.

Referenced by main(), and lux::LuxGuiApp::OnInit().

int Mod ( int  a,
int  b 
) [inline]
option nounput WHITESPACE [ \t\0xa] NUMBER ( [0-9] +|  ([0-9]+\.[0-9]*)|(\.[0-9]+)  ) 

Definition at line 105 of file luxlex.l.

References BEGIN, and INCL.

bool ParseFile ( const char *  filename  ) 
bool Quadratic ( float  A,
float  B,
float  C,
float *  t0,
float *  t1 
) [inline]
float Radians ( float  deg  )  [inline]
int Round2Int ( double  val  )  [inline]
u_int RoundUpPow2 ( u_int  v  )  [inline]
float SmoothStep ( float  min,
float  max,
float  value 
) [inline]

Definition at line 424 of file luxlex.l.

Referenced by lux::IGIIntegrator::Li().

void yyerror ( const char *  str  ) 

Definition at line 90 of file luxparse.cpp.

References LUX_SEVERE, LUX_SYNTAX, and luxError.


Variable Documentation

Definition at line 54 of file luxlex.l.

int line_num

Definition at line 85 of file luxparse.cpp.

int str_pos

Definition at line 57 of file luxlex.l.

<INCL> WHITESPACE

Definition at line 110 of file luxlex.l.


Generated on 22 Jan 2010 for lux by  doxygen 1.6.1