VirtualBox

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

Last change on this file since 18847 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.5 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_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 dirty[CR_MAX_BITARRAY];
32} CRPointBits;
33
34typedef struct {
35 GLboolean pointSmooth;
36 GLfloat pointSize;
37#ifdef CR_ARB_point_parameters
38 GLfloat minSize, maxSize;
39 GLfloat fadeThresholdSize;
40 GLfloat distanceAttenuation[3];
41#endif
42#ifdef CR_ARB_point_sprite
43 GLboolean pointSprite;
44 GLboolean coordReplacement[CR_MAX_TEXTURE_UNITS];
45#endif
46} CRPointState;
47
48DECLEXPORT(void) crStatePointInit (CRContext *ctx);
49
50DECLEXPORT(void) crStatePointDiff(CRPointBits *bb, CRbitvalue *bitID,
51 CRContext *fromCtx, CRContext *toCtx);
52DECLEXPORT(void) crStatePointSwitch(CRPointBits *bb, CRbitvalue *bitID,
53 CRContext *fromCtx, CRContext *toCtx);
54
55#ifdef __cplusplus
56}
57#endif
58
59#endif /* CR_STATE_LINE_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