amino
Lightweight Robot Utility Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
wavefront.h File Reference

Wavefront OBJ/MTL mesh parser. More...

Go to the source code of this file.

Macros

#define AA_RX_WF_OBJ_FACE_NONE   -1
 Indicates an entry in a wavefront face is not used.
 

Functions

AA_API void aa_rx_wf_obj_destroy (struct aa_rx_wf_obj *)
 Destroy the object for a wavefront obj file.
 
AA_API size_t aa_rx_wf_obj_mtl_count (struct aa_rx_wf_obj *obj)
 Return the number of MTL files.
 
AA_API const char * aa_rx_wf_obj_get_mtl_filename (struct aa_rx_wf_obj *obj, size_t i)
 Return the ith MTL filename.
 
AA_API const struct aa_rx_wf_mtl * aa_rx_wf_obj_get_mtl (struct aa_rx_wf_obj *obj, size_t i)
 Return the ith MTL struct.
 
AA_API size_t aa_rx_wf_obj_material_count (struct aa_rx_wf_obj *obj)
 Return the number of materials.
 
AA_API const char * aa_rx_wf_obj_get_material_name (struct aa_rx_wf_obj *obj, size_t i)
 Return the name of the ith material.
 
AA_API struct aa_rx_wf_obj * aa_rx_wf_parse (const char *filename)
 
AA_API void aa_rx_wf_obj_get_vertices (const struct aa_rx_wf_obj *obj, const double **verticies, size_t *n)
 Retrieve the verticies.
 
AA_API void aa_rx_wf_obj_get_normals (const struct aa_rx_wf_obj *obj, const double **normals, size_t *n)
 Retrieve the normals.
 
AA_API void aa_rx_wf_obj_get_vertex_indices (const struct aa_rx_wf_obj *obj, const int32_t **v, size_t *n)
 Retrieve the vertex indices.
 
AA_API void aa_rx_wf_obj_get_normal_indices (const struct aa_rx_wf_obj *obj, const int32_t **v, size_t *n)
 Retrieve the normal indices.
 
AA_API void aa_rx_wf_obj_get_uv_indices (const struct aa_rx_wf_obj *obj, const int32_t **v, size_t *n)
 Retrieve the uv indices.
 
AA_API void aa_rx_wf_obj_get_texture_indices (const struct aa_rx_wf_obj *obj, const int32_t **v, size_t *n)
 Retrieve the texture indices.
 
AA_API struct aa_rx_wf_mtl * aa_rx_wf_mtl_parse (const char *mtl_name)
 
AA_API void aa_rx_wf_mtl_destroy (struct aa_rx_wf_mtl *)
 
AA_API size_t aa_rx_wf_mtl_material_count (const struct aa_rx_wf_mtl *mtl)
 
AA_API struct aa_rx_wf_material * aa_rx_wf_mtl_get_material (const struct aa_rx_wf_mtl *mtl, size_t i)
 
AA_API int aa_rx_wf_material_has_specular_weight (const struct aa_rx_wf_material *material)
 
AA_API int aa_rx_wf_material_has_specular (const struct aa_rx_wf_material *material)
 
AA_API int aa_rx_wf_material_has_ambient (const struct aa_rx_wf_material *material)
 
AA_API int aa_rx_wf_material_has_emission (const struct aa_rx_wf_material *material)
 
AA_API int aa_rx_wf_material_has_diffuse (const struct aa_rx_wf_material *material)
 
AA_API int aa_rx_wf_material_has_alpha (const struct aa_rx_wf_material *material)
 
AA_API int aa_rx_wf_material_has_ior (const struct aa_rx_wf_material *material)
 
AA_API const char * aa_rx_wf_material_get_name (const struct aa_rx_wf_material *material)
 
AA_API const double * aa_rx_wf_material_get_specular (const struct aa_rx_wf_material *material)
 
AA_API const double * aa_rx_wf_material_get_ambient (const struct aa_rx_wf_material *material)
 
AA_API const double * aa_rx_wf_material_get_emission (const struct aa_rx_wf_material *material)
 
AA_API const double * aa_rx_wf_material_get_diffuse (const struct aa_rx_wf_material *material)
 
AA_API double aa_rx_wf_material_get_alpha (const struct aa_rx_wf_material *material)
 
AA_API double aa_rx_wf_material_get_ior (const struct aa_rx_wf_material *material)
 

Detailed Description

Wavefront OBJ/MTL mesh parser.

Definition in file wavefront.h.