summaryrefslogtreecommitdiff
path: root/src/resources/loaders.h
blob: 220a3916f1d1bc57978e0f91b2b3a277490818a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "defines.h"
#include "render_types.h"
#include "str.h"

// --- Public API
PUB ModelHandle ModelLoad_obj(const char *path, bool invert_texture_y);
PUB ModelHandle ModelLoad_gltf(const char *path, bool invert_texture_y);

typedef struct GLTF_LoadStats {
  u32 mesh_count, material_count, vertex_count, index_count, animation_count, joint_count;
} GLTF_LoadStats;

// --- Internal
bool model_load_gltf_str(const char *file_string, const char *filepath, Str8 relative_path,
                         Model *out_model, bool invert_textures_y);