BRL-CAD
obj_parser.cpp File Reference
#include "common.h"
#include "obj_parser.h"
#include "obj_parser_state.h"
#include "obj_grammar_decls.h"
#include "obj_rules.h"
#include <cerrno>
#include <cstdio>
#include <sstream>
#include <iostream>
#include "bu/malloc.h"
#include "bu/log.h"
Include dependency graph for obj_parser.cpp:

Go to the source code of this file.

Data Structures

struct  lex_sentry
 

Namespaces

 cad
 
 cad::gcv
 
 cad::gcv::obj
 

Functions

int obj_parser_parse (yyscan_t)
 
int obj_parser_create (obj_parser_t *parser)
 
void obj_parser_destroy (obj_parser_t parser)
 
int obj_parse (const char *filename, obj_parser_t parser, obj_contents_t *contents)
 
int obj_fparse (FILE *stream, obj_parser_t parser, obj_contents_t *contents)
 
const char * obj_parse_error (obj_parser_t parser)
 
int obj_contents_destroy (obj_contents_t contents)
 
size_t obj_vertices (obj_contents_t contents, const float(*val_arr[])[4])
 
size_t obj_texture_coord (obj_contents_t contents, const float(*val_arr[])[3])
 
size_t obj_normals (obj_contents_t contents, const float(*val_arr[])[3])
 
size_t obj_groups (obj_contents_t contents, const char *const (*val_arr[]))
 
size_t obj_num_groupsets (obj_contents_t contents)
 
size_t obj_groupset (obj_contents_t contents, size_t n, const size_t(*index_arr[]))
 
size_t obj_objects (obj_contents_t contents, const char *const (*val_arr[]))
 
size_t obj_materials (obj_contents_t contents, const char *const (*val_arr[]))
 
size_t obj_materiallibs (obj_contents_t contents, const char *const (*val_arr[]))
 
size_t obj_num_materiallibsets (obj_contents_t contents)
 
size_t obj_materiallibset (obj_contents_t contents, size_t n, const size_t(*index_arr[]))
 
size_t obj_texmaps (obj_contents_t contents, const char *const (*val_arr[]))
 
size_t obj_texmaplibs (obj_contents_t contents, const char *const (*val_arr[]))
 
size_t obj_num_texmaplibsets (obj_contents_t contents)
 
size_t obj_texmaplibset (obj_contents_t contents, size_t n, const size_t(*index_arr[]))
 
size_t obj_shadow_objs (obj_contents_t contents, const char *const (*val_arr[]))
 
size_t obj_trace_objs (obj_contents_t contents, const char *const (*val_arr[]))
 
size_t obj_polygonal_attributes (obj_contents_t contents, const obj_polygonal_attributes_t(*attr_list[]))
 
size_t obj_polygonal_v_points (obj_contents_t contents, const size_t(*attindex_arr[]))
 
size_t obj_polygonal_v_point_vertices (obj_contents_t contents, size_t face, const size_t(*index_arr[]))
 
size_t obj_polygonal_v_lines (obj_contents_t contents, const size_t(*attindex_arr[]))
 
size_t obj_polygonal_v_line_vertices (obj_contents_t contents, size_t face, const size_t(*index_arr[]))
 
size_t obj_polygonal_tv_lines (obj_contents_t contents, const size_t(*attindex_arr[]))
 
size_t obj_polygonal_tv_line_vertices (obj_contents_t contents, size_t face, const size_t(*index_arr[])[2])
 
size_t obj_polygonal_v_faces (obj_contents_t contents, const size_t(*attindex_arr[]))
 
size_t obj_polygonal_v_face_vertices (obj_contents_t contents, size_t face, const size_t(*index_arr[]))
 
size_t obj_polygonal_tv_faces (obj_contents_t contents, const size_t(*attindex_arr[]))
 
size_t obj_polygonal_tv_face_vertices (obj_contents_t contents, size_t face, const size_t(*index_arr[])[2])
 
size_t obj_polygonal_nv_faces (obj_contents_t contents, const size_t(*attindex_arr[]))
 
size_t obj_polygonal_nv_face_vertices (obj_contents_t contents, size_t face, const size_t(*index_arr[])[2])
 
size_t obj_polygonal_tnv_faces (obj_contents_t contents, const size_t(*attindex_arr[]))
 
size_t obj_polygonal_tnv_face_vertices (obj_contents_t contents, size_t face, const size_t(*index_arr[])[3])
 

Function Documentation

int obj_parser_parse ( yyscan_t  )

Referenced by obj_fparse(), and obj_parse().