Skip to content

Instantly share code, notes, and snippets.

@zid
Created December 13, 2018 07:14
Show Gist options
  • Save zid/107deaf43ea7b5049af7f216b53bddcf to your computer and use it in GitHub Desktop.
Save zid/107deaf43ea7b5049af7f216b53bddcf to your computer and use it in GitHub Desktop.
#ifndef M3D_H
#define M3D_H
typedef struct m3d m3d;
struct m3d *m3d_new(const char *path);
void m3d_free(struct m3d *m);
struct img *m3d_get_tex(struct m3d *m, int n);
float *m3d_get_verts(struct m3d *m, int n, uint32_t *out);
unsigned short *m3d_get_elems(struct m3d *m, int n, uint32_t *out);
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment