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 "purple"
12#define OBJPARSER_BBOX_OPACITY 1.0 /* This is not working for some reason */
13
14LG_Mesh *lg_obj2mesh(const char *, zboolean, zboolean, zboolean, zboolean, zboolean);
15
16LG_Mesh *lg_obj2vbo(const char *, FILE *, zboolean, zboolean, zboolean, zboolean, int);
17
18int lg_mtl_parser(const char *, const char *, LG_Material *[]);
19
20int lg_vertex_cmp(Vertex_uv_n *, Vertex_uv_n *, zboolean, zboolean);
21
23
24#endif /* LG_OBJ_PARSER_H */
zboolean lg_objparser_check_consistency()
Definition lg_obj_parser.c:880
int lg_vertex_cmp(Vertex_uv_n *v1, Vertex_uv_n *v2, zboolean tex_coords, zboolean normals)
Definition lg_obj_parser.c:830
int lg_mtl_parser(const char *mtl_file, const char *obj_full_path, LG_Material *mat[])
Definition lg_obj_parser.c:714
LG_Mesh * lg_obj2vbo(const char *obj_full_path, FILE *stream, zboolean invert_z, zboolean normalize_xyz, zboolean horiz_center, zboolean vert_center, zboolean vert_bottom)
Definition lg_obj_parser.c:151
Definition lg_mesh.h:41
Definition lg_mesh.h:87
Definition lg_vertex.h:46