blob: f6b64492b69a57a0886ab25a98d3ad04be87004d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/* Copyright (c) 2001, Stanford University
* All rights reserved.
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#ifndef CR_STATE_HINT_H
#define CR_STATE_HINT_H
#include "state/cr_statetypes.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
CRbitvalue dirty[CR_MAX_BITARRAY];
CRbitvalue perspectiveCorrection[CR_MAX_BITARRAY];
CRbitvalue pointSmooth[CR_MAX_BITARRAY];
CRbitvalue lineSmooth[CR_MAX_BITARRAY];
CRbitvalue polygonSmooth[CR_MAX_BITARRAY];
CRbitvalue fog[CR_MAX_BITARRAY];
#ifdef CR_EXT_clip_volume_hint
CRbitvalue clipVolumeClipping[CR_MAX_BITARRAY];
#endif
#ifdef CR_ARB_texture_compression
CRbitvalue textureCompression[CR_MAX_BITARRAY];
#endif
#ifdef CR_SGIS_generate_mipmap
CRbitvalue generateMipmap[CR_MAX_BITARRAY];
#endif
} CRHintBits;
typedef struct {
GLenum perspectiveCorrection;
GLenum pointSmooth;
GLenum lineSmooth;
GLenum polygonSmooth;
GLenum fog;
#ifdef CR_EXT_clip_volume_hint
GLenum clipVolumeClipping;
#endif
#ifdef CR_ARB_texture_compression
GLenum textureCompression;
#endif
#ifdef CR_SGIS_generate_mipmap
GLenum generateMipmap;
#endif
} CRHintState;
DECLEXPORT(void) crStateHintInit(CRContext *ctx);
DECLEXPORT(void) crStateHintDiff(CRHintBits *bb, CRbitvalue *bitID,
CRContext *fromCtx, CRContext *toCtx);
DECLEXPORT(void) crStateHintSwitch(CRHintBits *bb, CRbitvalue *bitID,
CRContext *fromCtx, CRContext *toCtx);
#ifdef __cplusplus
}
#endif
#endif /* CR_STATE_HINT_H */
|