#include "api.h"
#include "pbrt.h"
#include "paramset.h"
#include <stdarg.h>
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) | |
pbrtAccelerator ($2, params) | |
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 | ) |
Value:
if (strncmp(name, strp, strlen(name)) == 0) { \
*type = mask; strp += strlen(name); \
}
#define YYMAXDEPTH 100000000 |
#define YYPRINT | ( | file, | |||
type, | |||||
value | ) |
Value:
{ \ if ((type) == ID || (type) == STRING) \ fprintf ((file), " %s", (value).string); \ else if ((type) == NUM) \ fprintf ((file), " %f", (value).num); \ }
ArrayFree | ( | $ | 2 | ) |
FreeArgs | ( | ) |
if | ( | cur_paramlist_size >= | cur_paramlist_allocated | ) |
Definition at line 7101 of file pbrtparse.y.
Referenced by GridAccel::Intersect(), Disk::Intersect(), GridAccel::IntersectP(), Disk::IntersectP(), and LoopSubdiv::LoopSubdiv().
static void InitParamSet | ( | ParamSet & | ps, | |
int | count, | |||
const char ** | tokens, | |||
void ** | args, | |||
int * | sizes, | |||
bool * | texture_helper | |||
) | [static] |
Definition at line 7298 of file pbrtparse.y.
InitParamSet | ( | params | , | |
CPS | , | |||
CPT | , | |||
CPA | , | |||
CPSZ | , | |||
CPTH | ||||
) |
static bool lookupType | ( | const char * | token, | |
int * | type, | |||
string & | name | |||
) | [static] |
Definition at line 7371 of file pbrtparse.y.
memcpy | ( | arg | , | |
$2-> | array, | |||
$2->nelems *$2-> | element_size | |||
) |
pbrtAccelerator | ( | $ | 2, | |
params | ||||
) |
array_init __pad0__ |
Definition at line 6987 of file pbrtparse.y.
real_num_array __pad10__ |
Definition at line 7057 of file pbrtparse.y.
single_element_num_array __pad11__ |
Definition at line 7062 of file pbrtparse.y.
num_list __pad12__ |
Definition at line 7073 of file pbrtparse.y.
num_list_entry __pad13__ |
Definition at line 7077 of file pbrtparse.y.
paramlist __pad14__ |
Definition at line 7079 of file pbrtparse.y.
paramlist_init __pad15__ |
Definition at line 7087 of file pbrtparse.y.
paramlist_contents __pad16__ |
Definition at line 7088 of file pbrtparse.y.
paramlist_entry __pad17__ |
Definition at line 7099 of file pbrtparse.y.
ri_stmt_list __pad18__ |
Definition at line 7113 of file pbrtparse.y.
ri_stmt __pad19__ |
Definition at line 7124 of file pbrtparse.y.
string_array_init __pad1__ |
Definition at line 6997 of file pbrtparse.y.
num_array_init __pad2__ |
Definition at line 7002 of file pbrtparse.y.
Definition at line 7007 of file pbrtparse.y.
string_array __pad4__ |
Definition at line 7016 of file pbrtparse.y.
real_string_array __pad5__ |
Definition at line 7026 of file pbrtparse.y.
single_element_string_array __pad6__ |
Definition at line 7031 of file pbrtparse.y.
string_list __pad7__ |
Definition at line 7042 of file pbrtparse.y.
string_list_entry __pad8__ |
Definition at line 7046 of file pbrtparse.y.
num_array __pad9__ |
Definition at line 7048 of file pbrtparse.y.
Definition at line 6993 of file pbrtparse.y.
Definition at line 6995 of file pbrtparse.y.
array_is_single_string = false |
Definition at line 6996 of file pbrtparse.y.
cur_array = new ParamArray |
Definition at line 6992 of file pbrtparse.y.
cur_paramlist_args[cur_paramlist_size++] = arg |
Definition at line 7111 of file pbrtparse.y.
cur_paramlist_sizes[cur_paramlist_size] = $2->nelems |
Definition at line 7109 of file pbrtparse.y.
cur_paramlist_texture_helper[cur_paramlist_size] = array_is_single_string |
Definition at line 7110 of file pbrtparse.y.
cur_paramlist_tokens[cur_paramlist_size] = $1 |
Definition at line 7108 of file pbrtparse.y.
Definition at line 6994 of file pbrtparse.y.
AddArrayElement & to_add |
Definition at line 7047 of file pbrtparse.y.