polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

mkgeom.h (403B)


      1 
      2 #pragma once
      3 
      4 struct make_geometry {
      5     float *vertices;
      6     float *normals;
      7     float *colors;
      8     int num_verts;
      9 
     10     unsigned *indices;
     11     int num_indices;
     12 
     13     float *tex_coords;
     14     int num_uv_components;
     15 
     16     unsigned *joint_ids;
     17     int num_joint_ids;
     18 
     19     float *joint_weights;
     20 };
     21 
     22 void init_make_geometry(struct make_geometry *mkgeom);
     23 void free_make_geometry(struct make_geometry *mkgeom);