VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/include/state/cr_viewport.h@ 35346

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
13extern "C" {
14#endif
15
16typedef 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
24typedef 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
43DECLEXPORT(void) crStateViewportInit(CRContext *ctx);
44
45DECLEXPORT(void) crStateViewportApply( CRViewportState *v, GLvectorf *p );
46DECLEXPORT(void) crStateViewportMakeCurrent(CRViewportState *v, CRViewportBits *vb);
47
48DECLEXPORT(void) crStateViewportDiff(CRViewportBits *bb, CRbitvalue *bitID,
49 CRContext *fromCtx, CRContext *toCtx);
50DECLEXPORT(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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette