1 | /* Copyright (c) 2001, Stanford University
|
---|
2 | * All rights reserved.
|
---|
3 | *
|
---|
4 | * See the file LICENSE.txt for information on redistributing this software.
|
---|
5 | */
|
---|
6 |
|
---|
7 | #ifndef CR_STATE_LINE_H
|
---|
8 | #define SR_STATE_LINE_H
|
---|
9 |
|
---|
10 | #include "state/cr_statetypes.h"
|
---|
11 |
|
---|
12 | #include <iprt/cdefs.h>
|
---|
13 |
|
---|
14 | #ifdef __cplusplus
|
---|
15 | extern "C" {
|
---|
16 | #endif
|
---|
17 |
|
---|
18 | typedef struct {
|
---|
19 | CRbitvalue enableSmooth[CR_MAX_BITARRAY];
|
---|
20 | CRbitvalue size[CR_MAX_BITARRAY];
|
---|
21 | #ifdef CR_ARB_point_parameters
|
---|
22 | CRbitvalue minSize[CR_MAX_BITARRAY];
|
---|
23 | CRbitvalue maxSize[CR_MAX_BITARRAY];
|
---|
24 | CRbitvalue fadeThresholdSize[CR_MAX_BITARRAY];
|
---|
25 | CRbitvalue distanceAttenuation[CR_MAX_BITARRAY];
|
---|
26 | #endif
|
---|
27 | #ifdef CR_ARB_point_sprite
|
---|
28 | CRbitvalue enableSprite[CR_MAX_BITARRAY];
|
---|
29 | CRbitvalue coordReplacement[CR_MAX_TEXTURE_UNITS][CR_MAX_BITARRAY];
|
---|
30 | #endif
|
---|
31 | CRbitvalue dirty[CR_MAX_BITARRAY];
|
---|
32 | } CRPointBits;
|
---|
33 |
|
---|
34 | typedef struct {
|
---|
35 | GLboolean pointSmooth;
|
---|
36 | GLfloat pointSize;
|
---|
37 | #ifdef CR_ARB_point_parameters
|
---|
38 | GLfloat minSize, maxSize;
|
---|
39 | GLfloat fadeThresholdSize;
|
---|
40 | GLfloat distanceAttenuation[3];
|
---|
41 | #endif
|
---|
42 | #ifdef CR_ARB_point_sprite
|
---|
43 | GLboolean pointSprite;
|
---|
44 | GLboolean coordReplacement[CR_MAX_TEXTURE_UNITS];
|
---|
45 | #endif
|
---|
46 | } CRPointState;
|
---|
47 |
|
---|
48 | DECLEXPORT(void) crStatePointInit (CRContext *ctx);
|
---|
49 |
|
---|
50 | DECLEXPORT(void) crStatePointDiff(CRPointBits *bb, CRbitvalue *bitID,
|
---|
51 | CRContext *fromCtx, CRContext *toCtx);
|
---|
52 | DECLEXPORT(void) crStatePointSwitch(CRPointBits *bb, CRbitvalue *bitID,
|
---|
53 | CRContext *fromCtx, CRContext *toCtx);
|
---|
54 |
|
---|
55 | #ifdef __cplusplus
|
---|
56 | }
|
---|
57 | #endif
|
---|
58 |
|
---|
59 | #endif /* CR_STATE_LINE_H */
|
---|