| [6308] | 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: | 
|---|
| [6480] | 14 | vertex          vert | 
|---|
|  | 15 | primitive       prim | 
|---|
|  | 16 | maximum         max | 
|---|
|  | 17 | minimum         min | 
|---|
|  | 18 | parameter       param | 
|---|
| [6308] | 19 | */ | 
|---|
|  | 20 |  | 
|---|
| [6480] | 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 | 
|---|
| [6308] | 30 |  | 
|---|
| [6480] | 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 | 
|---|
| [6308] | 40 |  | 
|---|
| [6480] | 41 | #define ACTC_PRIM_FAN                   0x2000 | 
|---|
|  | 42 | #define ACTC_PRIM_STRIP                 0x2001 | 
|---|
| [6308] | 43 |  | 
|---|
| [6480] | 44 | #define ACTC_TRUE                       1 | 
|---|
|  | 45 | #define ACTC_FALSE                      0 | 
|---|
| [6308] | 46 |  | 
|---|
|  | 47 | ACTCData *actcNew(void); | 
|---|
|  | 48 | int actcParami(ACTCData *tc, int param, int value); | 
|---|
|  | 49 | int actcGetParami(ACTCData *tc, int param, int *value); | 
|---|
| [6480] | 50 | int actcParamu(ACTCData *tc, int param, unsigned int value); | 
|---|
|  | 51 | int actcGetParamu(ACTCData *tc, int param, unsigned int *value); | 
|---|
| [6308] | 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); | 
|---|
| [6480] | 59 | int actcAddTriangle(ACTCData *tc, unsigned int v1, unsigned int v2, unsigned int v3); | 
|---|
| [6308] | 60 | int actcEndInput(ACTCData *tc); | 
|---|
|  | 61 |  | 
|---|
|  | 62 | int actcBeginOutput(ACTCData *tc); | 
|---|
|  | 63 | int actcGetIsDuringOutput(ACTCData *tc); | 
|---|
| [6480] | 64 | int actcStartNextPrim(ACTCData *tc, unsigned int *v1Return, unsigned int *v2Return); | 
|---|
|  | 65 | int actcGetNextVert(ACTCData *tc, unsigned int *vReturn); | 
|---|
| [6308] | 66 | int actcEndOutput(ACTCData *tc); | 
|---|
|  | 67 |  | 
|---|
|  | 68 | int actcGetMemoryAllocation(ACTCData *tc, size_t *bytesAllocated); | 
|---|
|  | 69 |  | 
|---|
|  | 70 | int actcTrianglesToPrimitives(ACTCData *tc, int triangleCount, | 
|---|
| [6480] | 71 | unsigned int (*triangles)[3], int primTypes[], int primLengths[], unsigned int vertices[], | 
|---|
| [6308] | 72 | int maxBatchSize); | 
|---|
|  | 73 |  | 
|---|
|  | 74 | #endif /* _ACTC_H_ */ | 
|---|
|  | 75 |  | 
|---|
|  | 76 | /* vi:tabstop=8 | 
|---|
|  | 77 | */ | 
|---|