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));
|
|
|
|
|
2018-10-12 20:37:26 +02:00
|
|
|
void writepxl (u16 x, u16 y, u32 c);
|
2007-04-02 16:32:07 +02:00
|
|
|
void line(u32 x1, u32 y1, u32 x2, u32 y2, u8 color);
|
2018-08-22 17:36:30 +02:00
|
|
|
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);
|