VirtualBox

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

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

crOpenGL: export to OSE

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id
檔案大小: 2.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: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>}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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