0

added a triangle drawing function, with interpolated color

This commit is contained in:
Aaron Griffith
2011-10-11 21:17:10 -04:00
parent 3a090f77f5
commit 80a3849a6c
2 changed files with 102 additions and 0 deletions

View File

@@ -51,6 +51,13 @@ PyObject *alpha_over_wrap(PyObject *self, PyObject *args);
PyObject *tint_with_mask(PyObject *dest, unsigned char sr, unsigned char sg,
unsigned char sb, unsigned char sa,
PyObject *mask, int dx, int dy, int xsize, int ysize);
PyObject *draw_triangle(PyObject *dest,
int x0, int y0,
unsigned char r0, unsigned char g0, unsigned char b0,
int x1, int y1,
unsigned char r1, unsigned char g1, unsigned char b1,
int x2, int y2,
unsigned char r2, unsigned char g2, unsigned char b2);
/* forward declaration of RenderMode object */
typedef struct _RenderMode RenderMode;