1 | /* |
---|
2 | * $Header: /home/grantham/cvsroot/projects/modules/tc/tc.h,v 1.14 2000/10/03 07:19:20 grantham Exp $ |
---|
3 | */ |
---|
4 | |
---|
5 | #if !defined(_ACTC_H_) |
---|
6 | #define _ACTC_H_ |
---|
7 | |
---|
8 | #include <sys/types.h> |
---|
9 | |
---|
10 | typedef struct _ACTCData ACTCData; |
---|
11 | |
---|
12 | /* |
---|
13 | Abbreviated: |
---|
14 | vertex vert |
---|
15 | primitive prim |
---|
16 | maximum max |
---|
17 | minimum min |
---|
18 | parameter param |
---|
19 | */ |
---|
20 | |
---|
21 | #define ACTC_NO_ERROR 0 |
---|
22 | #define ACTC_ALLOC_FAILED -0x2000 |
---|
23 | #define ACTC_DURING_INPUT -0x2001 |
---|
24 | #define ACTC_DURING_OUTPUT -0x2002 |
---|
25 | #define ACTC_IDLE -0x2003 |
---|
26 | #define ACTC_INVALID_VALUE -0x2004 |
---|
27 | #define ACTC_DATABASE_EMPTY -0x2005 |
---|
28 | #define ACTC_DATABASE_CORRUPT -0x2006 |
---|
29 | #define ACTC_PRIM_COMPLETE -0x2007 |
---|
30 | |
---|
31 | #define ACTC_OUT_MIN_FAN_VERTS 0x1000 |
---|
32 | #define ACTC_OUT_HONOR_WINDING 0x1001 |
---|
33 | #define ACTC_OUT_MAX_PRIM_VERTS 0x1004 |
---|
34 | #define ACTC_IN_MIN_VERT 0x1005 |
---|
35 | #define ACTC_IN_MAX_VERT 0x1006 |
---|
36 | #define ACTC_IN_MAX_VERT_SHARING 0x1007 |
---|
37 | #define ACTC_IN_MAX_EDGE_SHARING 0x1008 |
---|
38 | #define ACTC_MINOR_VERSION 0x1009 |
---|
39 | #define ACTC_MAJOR_VERSION 0x1010 |
---|
40 | |
---|
41 | #define ACTC_PRIM_FAN 0x2000 |
---|
42 | #define ACTC_PRIM_STRIP 0x2001 |
---|
43 | |
---|
44 | #define ACTC_TRUE 1 |
---|
45 | #define ACTC_FALSE 0 |
---|
46 | |
---|
47 | ACTCData *actcNew(void); |
---|
48 | int actcParami(ACTCData *tc, int param, int value); |
---|
49 | int actcGetParami(ACTCData *tc, int param, int *value); |
---|
50 | int actcParamu(ACTCData *tc, int param, uint value); |
---|
51 | int actcGetParamu(ACTCData *tc, int param, uint *value); |
---|
52 | int actcGetError(ACTCData *tc); |
---|
53 | int actcMakeEmpty(ACTCData *tc); |
---|
54 | void actcDelete(ACTCData *tc); |
---|
55 | void actcDumpState(ACTCData *tc, FILE *fp); |
---|
56 | |
---|
57 | int actcBeginInput(ACTCData *tc); |
---|
58 | int actcGetIsDuringInput(ACTCData *tc); |
---|
59 | int actcAddTriangle(ACTCData *tc, uint v1, uint v2, uint v3); |
---|
60 | int actcEndInput(ACTCData *tc); |
---|
61 | |
---|
62 | int actcBeginOutput(ACTCData *tc); |
---|
63 | int actcGetIsDuringOutput(ACTCData *tc); |
---|
64 | int actcStartNextPrim(ACTCData *tc, uint *v1Return, uint *v2Return); |
---|
65 | int actcGetNextVert(ACTCData *tc, uint *vReturn); |
---|
66 | int actcEndOutput(ACTCData *tc); |
---|
67 | |
---|
68 | int actcGetMemoryAllocation(ACTCData *tc, size_t *bytesAllocated); |
---|
69 | |
---|
70 | int actcTrianglesToPrimitives(ACTCData *tc, int triangleCount, |
---|
71 | uint (*triangles)[3], int primTypes[], int primLengths[], uint vertices[], |
---|
72 | int maxBatchSize); |
---|
73 | |
---|
74 | #endif /* _ACTC_H_ */ |
---|
75 | |
---|
76 | /* vi:tabstop=8 |
---|
77 | */ |
---|