VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/include/state/cr_polygon.h@ 26936

最後變更 在這個檔案從26936是 15532,由 vboxsync 提交於 16 年 前

crOpenGL: export to OSE

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id
檔案大小: 1.2 KB
 
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_POLYGON_H
8#define CR_STATE_POLYGON_H
9
10#include "state/cr_statetypes.h"
11
12#include <iprt/cdefs.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18typedef struct {
19 CRbitvalue enable[CR_MAX_BITARRAY];
20 CRbitvalue offset[CR_MAX_BITARRAY];
21 CRbitvalue mode[CR_MAX_BITARRAY];
22 CRbitvalue stipple[CR_MAX_BITARRAY];
23 CRbitvalue dirty[CR_MAX_BITARRAY];
24} CRPolygonBits;
25
26typedef struct {
27 GLboolean polygonSmooth;
28 GLboolean polygonOffsetFill;
29 GLboolean polygonOffsetLine;
30 GLboolean polygonOffsetPoint;
31 GLboolean polygonStipple;
32 GLboolean cullFace;
33 GLfloat offsetFactor;
34 GLfloat offsetUnits;
35 GLenum cullFaceMode;
36 GLenum frontFace;
37 GLenum frontMode;
38 GLenum backMode;
39 GLint stipple[32];
40} CRPolygonState;
41
42DECLEXPORT(void) crStatePolygonInit(CRContext *ctx);
43
44DECLEXPORT(void) crStatePolygonDiff(CRPolygonBits *bb, CRbitvalue *bitID,
45 CRContext *fromCtx, CRContext *toCtx);
46DECLEXPORT(void) crStatePolygonSwitch(CRPolygonBits *bb, CRbitvalue *bitID,
47 CRContext *fromCtx, CRContext *toCtx);
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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