#include "api.h"
#include "lux.h"
#include "error.h"
#include "paramset.h"
#include "context.h"
#include "memory.h"
#include <stdarg.h>
#include <sstream>
Go to the source code of this file.
Defines | |
#define | YYMAXDEPTH 100000000 |
#define | CPS cur_paramlist_size |
#define | CPT cur_paramlist_tokens |
#define | CPA cur_paramlist_args |
#define | CPTH cur_paramlist_texture_helper |
#define | CPSZ cur_paramlist_sizes |
#define | NA(r) ((float *) r->array) |
#define | SA(r) ((const char **) r->array) |
#define | YYPRINT(file, type, value) |
#define | TRY_DECODING_TYPE(name, mask) |
Functions | |
memcpy (arg, $2->array, $2->nelems *$2->element_size) | |
if (cur_paramlist_size >=cur_paramlist_allocated) | |
ArrayFree ($2) | |
InitParamSet (params, CPS, CPT, CPA, CPSZ, CPTH) | |
FreeArgs () | |
static void | InitParamSet (ParamSet &ps, int count, const char **tokens, void **args, int *sizes, bool *texture_helper) |
static bool | lookupType (const char *token, int *type, string &name) |
Variables | |
array_init | __pad0__ |
cur_array = new ParamArray | |
cur_array | allocated = 0 |
cur_array | nelems = 0 |
cur_array | array = NULL |
array_is_single_string = false | |
string_array_init | __pad1__ |
num_array_init | __pad2__ |
array | __pad3__ |
string_array | __pad4__ |
real_string_array | __pad5__ |
single_element_string_array | __pad6__ |
string_list | __pad7__ |
string_list_entry | __pad8__ |
AddArrayElement & | to_add |
num_array | __pad9__ |
real_num_array | __pad10__ |
single_element_num_array | __pad11__ |
num_list | __pad12__ |
num_list_entry | __pad13__ |
paramlist | __pad14__ |
paramlist_init | __pad15__ |
paramlist_contents | __pad16__ |
paramlist_entry | __pad17__ |
cur_paramlist_tokens [cur_paramlist_size] = $1 | |
cur_paramlist_sizes [cur_paramlist_size] = $2->nelems | |
cur_paramlist_texture_helper [cur_paramlist_size] = array_is_single_string | |
cur_paramlist_args [cur_paramlist_size++] = arg | |
ri_stmt_list | __pad18__ |
ri_stmt | __pad19__ |
#define CPA cur_paramlist_args |
#define CPS cur_paramlist_size |
#define CPSZ cur_paramlist_sizes |
#define CPT cur_paramlist_tokens |
#define CPTH cur_paramlist_texture_helper |
#define NA | ( | r | ) | ((float *) r->array) |
#define SA | ( | r | ) | ((const char **) r->array) |
#define TRY_DECODING_TYPE | ( | name, | |||
mask | ) |
#define YYMAXDEPTH 100000000 |
#define YYPRINT | ( | file, | |||
type, | |||||
value | ) |
ArrayFree | ( | $ | 2 | ) |
FreeArgs | ( | ) |
Definition at line 164 of file luxparse.cpp.
References cur_paramlist_args, cur_paramlist_size, cur_paramlist_sizes, and cur_paramlist_tokens.
Referenced by yyparse().
if | ( | cur_paramlist_size >= | cur_paramlist_allocated | ) |
Definition at line 14212 of file luxparse.y.
Referenced by lux::ERPTSampler::AddSample(), cimg_library::CImg< T >::draw_object3d(), lux::GridAccel::Intersect(), lux::Disk::Intersect(), lux::GridAccel::IntersectP(), lux::Disk::IntersectP(), and lux::LoopSubdiv::LoopSubdiv().
static void InitParamSet | ( | ParamSet & | ps, | |
int | count, | |||
const char ** | tokens, | |||
void ** | args, | |||
int * | sizes, | |||
bool * | texture_helper | |||
) | [static] |
Definition at line 14430 of file luxparse.y.
InitParamSet | ( | params | , | |
CPS | , | |||
CPT | , | |||
CPA | , | |||
CPSZ | , | |||
CPTH | ||||
) |
static bool lookupType | ( | const char * | token, | |
int * | type, | |||
string & | name | |||
) | [static] |
Definition at line 14517 of file luxparse.y.
memcpy | ( | arg | , | |
$2-> | array, | |||
$2->nelems *$2-> | element_size | |||
) |
Referenced by cimg_library::CImgDisplay::_render_resize(), AddArrayElement(), ArrayDup(), cimg_library::CImg< T >::assign(), lux::BaryTriangleMesh::BaryTriangleMesh(), lux::UnsafeKdTreeAccel::buildTree(), lux::TaBRecKdTreeAccel::buildTree(), cimg_library::CImg< T >::CImg(), lux::PerspectiveCamera::CreateCamera(), lux::OrthoCamera::CreateCamera(), lux::EnvironmentCamera::CreateCamera(), cimg_library::CImg< T >::display_object3d(), lux::Distribution1D::Distribution1D(), cimg_library::CImg< T >::draw_image(), lux::FlexImageFilm::FlexImageFilm(), cimg_library::CImg< T >::get_blur_median(), cimg_library::CImg< T >::get_coordinates(), cimg_library::CImg< T >::get_resize(), lux::Heightfield::Heightfield(), lux::ImageFilm::ImageFilm(), cimg_library::CImgList< T >::insert(), lux::Matrix4x4::Inverse(), lux::Matrix4x4::Matrix4x4(), cimg_library::CImg< T >::mirror(), lux::NURBS::NURBS(), cimg_library::CImgList< T >::remove(), cimg_library::CImg< T >::save_inr(), cimg_library::CImg< T >::SVD(), cimg_library::CImg< T >::symmetric_eigen(), cimg_library::CImg< T >::translate(), lux::VolumeGrid::VolumeGrid(), lux::WaldTriangleMesh::WaldTriangleMesh(), and yyparse().
array_init __pad0__ |
Definition at line 14098 of file luxparse.y.
real_num_array __pad10__ |
Definition at line 14168 of file luxparse.y.
single_element_num_array __pad11__ |
Definition at line 14173 of file luxparse.y.
num_list __pad12__ |
Definition at line 14184 of file luxparse.y.
num_list_entry __pad13__ |
Definition at line 14188 of file luxparse.y.
paramlist __pad14__ |
Definition at line 14190 of file luxparse.y.
paramlist_init __pad15__ |
Definition at line 14198 of file luxparse.y.
paramlist_contents __pad16__ |
Definition at line 14199 of file luxparse.y.
paramlist_entry __pad17__ |
Definition at line 14210 of file luxparse.y.
ri_stmt_list __pad18__ |
Definition at line 14224 of file luxparse.y.
ri_stmt __pad19__ |
Definition at line 14235 of file luxparse.y.
string_array_init __pad1__ |
Definition at line 14108 of file luxparse.y.
num_array_init __pad2__ |
Definition at line 14113 of file luxparse.y.
Definition at line 14118 of file luxparse.y.
string_array __pad4__ |
Definition at line 14127 of file luxparse.y.
real_string_array __pad5__ |
Definition at line 14137 of file luxparse.y.
single_element_string_array __pad6__ |
Definition at line 14142 of file luxparse.y.
string_list __pad7__ |
Definition at line 14153 of file luxparse.y.
string_list_entry __pad8__ |
Definition at line 14157 of file luxparse.y.
num_array __pad9__ |
Definition at line 14159 of file luxparse.y.
Definition at line 14104 of file luxparse.y.
Definition at line 14106 of file luxparse.y.
Referenced by yyparse().
array_is_single_string = false |
Definition at line 14107 of file luxparse.y.
cur_array = new ParamArray |
Definition at line 14103 of file luxparse.y.
cur_paramlist_args[cur_paramlist_size++] = arg |
Definition at line 14222 of file luxparse.y.
Definition at line 14220 of file luxparse.y.
Definition at line 14221 of file luxparse.y.
Definition at line 14219 of file luxparse.y.
Definition at line 14105 of file luxparse.y.
Referenced by yyparse().
AddArrayElement & to_add |
Definition at line 14158 of file luxparse.y.
Referenced by yyparse().