VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_point.txt@ 36300

Last change on this file since 36300 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: 2.2 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:enableSmooth:pointSmooth:GL_POINT_SMOOTH
6:size:pointSize:PointSize
7:minSize:minSize:PointParameterfARB,GL_POINT_SIZE_MIN_ARB
8:maxSize:maxSize:PointParameterfARB,GL_POINT_SIZE_MAX_ARB
9:fadeThresholdSize:fadeThresholdSize:PointParameterfARB,GL_POINT_FADE_THRESHOLD_SIZE_ARB
10#:distanceAttenuation:distanceAttenuation:PointParameterfvARB,GL_POINT_DISTANCE_ATTENUATION_ARB
11-:distanceAttenuation:*if (from->distanceAttenuation[0] != to->distanceAttenuation[0] || from->distanceAttenuation[1] != to->distanceAttenuation[1] || from->distanceAttenuation[2] != to->distanceAttenuation[2]) {
12-:distanceAttenuation:* diff_api.PointParameterfvARB (GL_POINT_DISTANCE_ATTENUATION_ARB, to->distanceAttenuation);
13-:distanceAttenuation:* FILLDIRTY(b->distanceAttenuation);
14-:distanceAttenuation:* FILLDIRTY(b->dirty);
15-:distanceAttenuation:*}
16+:distanceAttenuation:*if (from->distanceAttenuation[0] != to->distanceAttenuation[0] || from->distanceAttenuation[1] != to->distanceAttenuation[1] || from->distanceAttenuation[2] != to->distanceAttenuation[2]) {
17+:distanceAttenuation:* diff_api.PointParameterfvARB (GL_POINT_DISTANCE_ATTENUATION_ARB, to->distanceAttenuation);
18+:distanceAttenuation:* from->distanceAttenuation[0] = to->distanceAttenuation[0];
19+:distanceAttenuation:* from->distanceAttenuation[1] = to->distanceAttenuation[1];
20+:distanceAttenuation:* from->distanceAttenuation[2] = to->distanceAttenuation[2];
21+:distanceAttenuation:*}
22:enableSprite:pointSprite:GL_POINT_SPRITE_ARB
23%flush
24>{
25>unsigned int activeUnit = (unsigned int) -1;
26>for (i = 0; i < CR_MAX_TEXTURE_UNITS; i++) {
27:coordReplacement[i]:*GLint replacement = to->coordReplacement[i];
28:coordReplacement[i]:*if (activeUnit != i) {
29:coordReplacement[i]:* diff_api.ActiveTextureARB(i + GL_TEXTURE0_ARB );
30:coordReplacement[i]:* activeUnit = i;
31:coordReplacement[i]:*}
32:coordReplacement[i]:*diff_api.TexEnviv(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, &replacement);
33+:coordReplacement[i]:*from->coordReplacement[i] = to->coordReplacement[i];
34%flush
35>}
36>if (activeUnit != toCtx->texture.curTextureUnit)
37> diff_api.ActiveTextureARB(GL_TEXTURE0 + toCtx->texture.curTextureUnit);
38>}
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