VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/include/state/cr_point.h@ 49216

最後變更 在這個檔案從49216是 46037,由 vboxsync 提交於 12 年 前

crOpenGL: 1. missing 2.1 bits: glPointParameter GL_POINT_SPRITE_COORD_ORIGIN support; 2. Proper GL_NONE for buffers; 3. etc.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id
檔案大小: 1.7 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_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
15extern "C" {
16#endif
17
18typedef 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 spriteCoordOrigin[CR_MAX_BITARRAY];
32 CRbitvalue dirty[CR_MAX_BITARRAY];
33} CRPointBits;
34
35typedef struct {
36 GLboolean pointSmooth;
37 GLfloat pointSize;
38#ifdef CR_ARB_point_parameters
39 GLfloat minSize, maxSize;
40 GLfloat fadeThresholdSize;
41 GLfloat distanceAttenuation[3];
42#endif
43#ifdef CR_ARB_point_sprite
44 GLboolean pointSprite;
45 GLboolean coordReplacement[CR_MAX_TEXTURE_UNITS];
46#endif
47 GLfloat spriteCoordOrigin;
48 GLfloat reserved; /* added to make sure alignment of sttructures following CRPointState in CRContext does not change */
49} CRPointState;
50
51DECLEXPORT(void) crStatePointInit (CRContext *ctx);
52
53DECLEXPORT(void) crStatePointDiff(CRPointBits *bb, CRbitvalue *bitID,
54 CRContext *fromCtx, CRContext *toCtx);
55DECLEXPORT(void) crStatePointSwitch(CRPointBits *bb, CRbitvalue *bitID,
56 CRContext *fromCtx, CRContext *toCtx);
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif /* CR_STATE_LINE_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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