2018-09-28 20:35:51 +02:00
|
|
|
/*******************************************************************************/
|
|
|
|
/* COS2000 - Compatible Operating System - LGPL v3 - Hordé Nicolas */
|
|
|
|
/* */
|
2018-08-17 16:46:56 +02:00
|
|
|
#include "types.h"
|
|
|
|
|
2018-08-22 17:36:30 +02:00
|
|
|
typedef struct vertex2d{
|
|
|
|
u32 x;
|
|
|
|
u32 y;
|
|
|
|
} vertex2d __attribute__ ((packed));
|
|
|
|
|
|
|
|
void linev(vertex2d *A, vertex2d *B, u8 color);
|
|
|
|
void hline(u32 x1, u32 x2, u32 y, u8 color);
|
|
|
|
void trianglefilled(vertex2d *A, vertex2d *B, vertex2d *C, u8 color);
|
|
|
|
void triangle(vertex2d *A, vertex2d *B, vertex2d *C, u8 color);
|