Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/lib/graphics/importer/tc.h @ 6404

Last change on this file since 6404 was 6308, checked in by bensch, 19 years ago

orxonox/trunk: added tc a library to convert Vertice-Melanges into VertexArrayStrips. Also implemented it partly in the VertexArrayModel-class…. testing

File size: 2.1 KB
Line 
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
10typedef 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
47ACTCData *actcNew(void);
48int actcParami(ACTCData *tc, int param, int value);
49int actcGetParami(ACTCData *tc, int param, int *value);
50int actcParamu(ACTCData *tc, int param, uint value);
51int actcGetParamu(ACTCData *tc, int param, uint *value);
52int actcGetError(ACTCData *tc);
53int actcMakeEmpty(ACTCData *tc);
54void actcDelete(ACTCData *tc);
55void actcDumpState(ACTCData *tc, FILE *fp);
56
57int actcBeginInput(ACTCData *tc);
58int actcGetIsDuringInput(ACTCData *tc);
59int actcAddTriangle(ACTCData *tc, uint v1, uint v2, uint v3);
60int actcEndInput(ACTCData *tc);
61
62int actcBeginOutput(ACTCData *tc);
63int actcGetIsDuringOutput(ACTCData *tc);
64int actcStartNextPrim(ACTCData *tc, uint *v1Return, uint *v2Return);
65int actcGetNextVert(ACTCData *tc, uint *vReturn);
66int actcEndOutput(ACTCData *tc);
67
68int actcGetMemoryAllocation(ACTCData *tc, size_t *bytesAllocated);
69
70int 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 */
Note: See TracBrowser for help on using the repository browser.