-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbumptri.h
More file actions
22 lines (16 loc) · 705 Bytes
/
bumptri.h
File metadata and controls
22 lines (16 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _BUMPTRI_H
#define _BUMPTRI_H
#include "bump.h"
void flat_triangle(int x1, int y1, int x2, int y2, int x3, int y3,
unsigned char color, unsigned char* buffer);
void gouraud_triangle(int x1, int y1, int x2, int y2, int x3, int y3,
unsigned char c1, unsigned char c2, unsigned char c3,
unsigned char* buffer);
void textured_triangle(int x1, int y1, int x2, int y2, int x3, int y3,
int tx1, int ty1, int tx2, int ty2, int tx3, int ty3,
unsigned char* texture, unsigned char* buffer);
void bumpmapped_triangle(tri_struct* tri, tri_struct* bump_tri,
tri_struct* env_tri,
unsigned char* bumpmap, unsigned char* envmap,
unsigned char* buffer);
#endif // _BUMPTRI_H