gba-x3dtest

diff src/polyfill.h @ 17:0a7f402892b3

texture mapping
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 26 Jun 2014 06:57:51 +0300
parents b755fb002f17
children
line diff
     1.1 --- a/src/polyfill.h	Wed Jun 25 18:18:05 2014 +0300
     1.2 +++ b/src/polyfill.h	Thu Jun 26 06:57:51 2014 +0300
     1.3 @@ -2,6 +2,7 @@
     1.4  #define POLYFILL_H_
     1.5  
     1.6  #include <stdint.h>
     1.7 +#include "x3d_impl.h"
     1.8  
     1.9  typedef struct pvec3 {
    1.10  	int32_t x, y, z;
    1.11 @@ -11,7 +12,8 @@
    1.12  	int32_t x, y;
    1.13  } pvec2;
    1.14  
    1.15 -void draw_poly(int num, const pvec3 *verts, const pvec2 *tex, uint16_t color);
    1.16 +void draw_poly(int num, const pvec3 *verts, const pvec2 *texcoords, uint16_t color,
    1.17 +		struct texture *tex);
    1.18  
    1.19  void draw_point(const pvec3 *v, uint16_t color);
    1.20