#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 254 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 9044 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 9262 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 9349 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 8930 of file luxparse.y.
real_num_array __pad10__ |
Definition at line 9000 of file luxparse.y.
single_element_num_array __pad11__ |
Definition at line 9005 of file luxparse.y.
num_list __pad12__ |
Definition at line 9016 of file luxparse.y.
num_list_entry __pad13__ |
Definition at line 9020 of file luxparse.y.
paramlist __pad14__ |
Definition at line 9022 of file luxparse.y.
paramlist_init __pad15__ |
Definition at line 9030 of file luxparse.y.
paramlist_contents __pad16__ |
Definition at line 9031 of file luxparse.y.
paramlist_entry __pad17__ |
Definition at line 9042 of file luxparse.y.
ri_stmt_list __pad18__ |
Definition at line 9056 of file luxparse.y.
ri_stmt __pad19__ |
Definition at line 9067 of file luxparse.y.
string_array_init __pad1__ |
Definition at line 8940 of file luxparse.y.
num_array_init __pad2__ |
Definition at line 8945 of file luxparse.y.
Definition at line 8950 of file luxparse.y.
string_array __pad4__ |
Definition at line 8959 of file luxparse.y.
real_string_array __pad5__ |
Definition at line 8969 of file luxparse.y.
single_element_string_array __pad6__ |
Definition at line 8974 of file luxparse.y.
string_list __pad7__ |
Definition at line 8985 of file luxparse.y.
string_list_entry __pad8__ |
Definition at line 8989 of file luxparse.y.
num_array __pad9__ |
Definition at line 8991 of file luxparse.y.
Definition at line 8936 of file luxparse.y.
array_is_single_string = false |
Definition at line 8939 of file luxparse.y.
cur_array = new ParamArray |
Definition at line 8935 of file luxparse.y.
cur_paramlist_args[cur_paramlist_size++] = arg |
Definition at line 9054 of file luxparse.y.
Definition at line 9052 of file luxparse.y.
Definition at line 9053 of file luxparse.y.
Definition at line 9051 of file luxparse.y.
AddArrayElement & to_add |