void main(void *arg) { ei_sub_context(); eiToken filename = eval_token(filename); eiToken root_name = eval_token(root_name); ei_parse2(filename.str, EI_TRUE); // set the root node for current procedural object geometry_root(root_name.str); ei_end_sub_context(); }
void main(void *arg) { ei_sub_context(); eiToken filename = eval_token(filename); eiToken root_name = eval_token(root_name); eiScalar particle_radius = eval_scalar(particle_radius); eiInt render_frame = eval_int(render_frame); eiScalar particle_speed = eval_scalar(particle_speed); ei_parse_abc(filename.str, particle_radius, particle_speed, render_frame, EI_TRUE); // set the root node for current procedural object geometry_root(root_name.str); ei_end_sub_context(); }
enum TOKTYPE peek_token(void) { enum TOKTYPE type = T_EOI; if (itok < ntok) { type = eval_token(tokens[itok]); } return type; }
void next_token(void) { token.sym = NULL; token.type = T_EOI; if (itok < ntok) { token.sym = tokens[itok++]; token.type = eval_token(token.sym); #ifdef LEXER_DEBUG printf(";// token %s <%d>\n", token.sym, token.type); #endif } }
void main(void *arg) { ei_sub_context(); eiToken filename = eval_token(fileName); eiScalar proxy_scale = eval_scalar(proxy_scale); char resolved_filename[ EI_MAX_FILE_NAME_LEN ]; ei_resolve_scene_name(resolved_filename, filename.str); ei_parse_vrmesh(resolved_filename, proxy_scale, "instance_group"); // set the root node for current procedural object geometry_root("instance_group"); ei_end_sub_context(); }