LibGame v0.4.0
The LG Game Engine - Copyright (C) 2024-2026 ETMSoftware
Loading...
Searching...
No Matches
lg_obj_parser.h
1/*
2 * LibGame - Copyright (C) Emmanuel Thomas-Maurin 2011-2026
3 * All rights reserved
4 */
5
6#ifndef LG_OBJ_PARSER_H
7#define LG_OBJ_PARSER_H
8
9#define SPATIAL_COORD_HUGE_VALUE (10e9) /* = 1 000 000 000.0 - OK ? */
10
11#define OBJPARSER_BBOX_COLOR "lighter-purple"
12#define OBJPARSER_BBOX_OPACITY 1.0 /* This is not working for some reason */
13
14LG_Mesh *lg_obj2vbo(LG_Path, FILE *, zboolean, zboolean, zboolean, zboolean, int);
15
16int lg_mtl_parser(const char *, LG_Path, LG_Material *[]);
17
18int lg_vertex_cmp(Vertex_uv_n *, Vertex_uv_n *, zboolean, zboolean);
19
21
22#endif /* LG_OBJ_PARSER_H */
int lg_mtl_parser(const char *mtl_filename, LG_Path obj_path, LG_Material *mat[])
Definition lg_obj_parser.c:715
zboolean lg_objparser_check_consistency()
Definition lg_obj_parser.c:894
int lg_vertex_cmp(Vertex_uv_n *v1, Vertex_uv_n *v2, zboolean tex_coords, zboolean normals)
Definition lg_obj_parser.c:842
LG_Mesh * lg_obj2vbo(LG_Path obj_path, FILE *stream, zboolean invert_z, zboolean normalize_xyz, zboolean horiz_center, zboolean vert_center, zboolean vert_bottom)
Definition lg_obj_parser.c:153
Definition lg_mesh.h:34
Definition lg_mesh.h:80
Definition lg_goodies.h:20
Definition lg_vertex.h:46