about summary refs log tree commit diff
path: root/generator/pamtris/triangle.h
diff options
context:
space:
mode:
Diffstat (limited to 'generator/pamtris/triangle.h')
-rw-r--r--generator/pamtris/triangle.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/generator/pamtris/triangle.h b/generator/pamtris/triangle.h
index 07e6d065..bceda54f 100644
--- a/generator/pamtris/triangle.h
+++ b/generator/pamtris/triangle.h
@@ -8,10 +8,18 @@
 struct boundary_info;
 struct framebuffer_info;
 
+typedef struct {
+    int32_t _[3][2];
+} Xy;
+
+typedef struct {
+    int32_t _[3][MAX_NUM_ATTRIBS + 1];
+} Attribs;
+
 void
-draw_triangle(int32_t            xy[3][2],
-              int32_t            attribs[3][MAX_NUM_ATTRIBS + 1],
-              struct boundary_info *,
-              struct framebuffer_info *);
+draw_triangle(Xy                        const xy,
+              Attribs                   const attribs,
+              struct boundary_info *    const,
+              struct framebuffer_info * const);
 
 #endif