Last change
on this file since 35346 was 15532, checked in by vboxsync, 16 years ago |
crOpenGL: export to OSE
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id
|
File size:
1.4 KB
|
Line | |
---|
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_VIEWPORT_H
|
---|
8 | #define CR_STATE_VIEWPORT_H
|
---|
9 |
|
---|
10 | #include "state/cr_statetypes.h"
|
---|
11 |
|
---|
12 | #ifdef __cplusplus
|
---|
13 | extern "C" {
|
---|
14 | #endif
|
---|
15 |
|
---|
16 | typedef struct {
|
---|
17 | CRbitvalue dirty[CR_MAX_BITARRAY];
|
---|
18 | CRbitvalue v_dims[CR_MAX_BITARRAY];
|
---|
19 | CRbitvalue s_dims[CR_MAX_BITARRAY];
|
---|
20 | CRbitvalue enable[CR_MAX_BITARRAY];
|
---|
21 | CRbitvalue depth[CR_MAX_BITARRAY];
|
---|
22 | } CRViewportBits;
|
---|
23 |
|
---|
24 | typedef struct {
|
---|
25 | /* Viewport state */
|
---|
26 | GLint viewportX;
|
---|
27 | GLint viewportY;
|
---|
28 | GLint viewportW;
|
---|
29 | GLint viewportH;
|
---|
30 | GLclampd nearClip;
|
---|
31 | GLclampd farClip;
|
---|
32 | GLboolean viewportValid;
|
---|
33 |
|
---|
34 | /* Scissor state */
|
---|
35 | GLboolean scissorTest;
|
---|
36 | GLint scissorX;
|
---|
37 | GLint scissorY;
|
---|
38 | GLsizei scissorW;
|
---|
39 | GLsizei scissorH;
|
---|
40 | GLboolean scissorValid;
|
---|
41 | } CRViewportState;
|
---|
42 |
|
---|
43 | DECLEXPORT(void) crStateViewportInit(CRContext *ctx);
|
---|
44 |
|
---|
45 | DECLEXPORT(void) crStateViewportApply( CRViewportState *v, GLvectorf *p );
|
---|
46 | DECLEXPORT(void) crStateViewportMakeCurrent(CRViewportState *v, CRViewportBits *vb);
|
---|
47 |
|
---|
48 | DECLEXPORT(void) crStateViewportDiff(CRViewportBits *bb, CRbitvalue *bitID,
|
---|
49 | CRContext *fromCtx, CRContext *toCtx);
|
---|
50 | DECLEXPORT(void) crStateViewportSwitch(CRViewportBits *bb, CRbitvalue *bitID,
|
---|
51 | CRContext *fromCtx, CRContext *toCtx);
|
---|
52 |
|
---|
53 | #ifdef __cplusplus
|
---|
54 | }
|
---|
55 | #endif
|
---|
56 |
|
---|
57 | #endif /* CR_STATE_VIEWPORT_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.