about summary refs log tree commit diff
path: root/generator/pamtris/triangle.h
blob: e043e95c92a062a7780ab9496d6b4b750bef1489 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef TRIANGLE_H_INCLUDED
#define TRIANGLE_H_INCLUDED

#include <stdint.h>

#include "limits_pamtris.h"

struct boundary_info;
struct framebuffer_info;

typedef struct {
    int32_t _[3][2];
} Xy;

typedef struct {
    int32_t _[3][MAX_NUM_ATTRIBS + 2];
} Attribs;

void
draw_triangle(Xy                        const xy,
              Attribs                   const attribs,
              struct boundary_info *    const bdi,
              struct framebuffer_info * const fbi);

#endif