VirtualBox

Ignore:
Timestamp:
May 3, 2019 9:51:02 PM (6 years ago)
Author:
vboxsync
Message:

Additions/common/crOpengl,GuestHost/OpenGL,HostServices/SharedOpenGL: Eliminate all global variables from the state tracker library (state_tracker) in preparation of the SPU DLL merging, bugref:9435

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_lighting.txt

    r15532 r78375  
    99:shadeModel:shadeModel:ShadeModel
    1010:lightModel:lightModelAmbient|r,g,b,a:LightModelfv,GL_LIGHT_MODEL_AMBIENT
    11 :lightModel:lightModelLocalViewer:*diff_api.LightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, to->lightModelLocalViewer==GL_TRUE);
    12 :lightModel:lightModelTwoSide:*diff_api.LightModeli(GL_LIGHT_MODEL_TWO_SIDE, to->lightModelTwoSide==GL_TRUE);
    13 :lightModel:lightModelColorControlEXT:*diff_api.LightModeli(GL_LIGHT_MODEL_COLOR_CONTROL_EXT, to->lightModelColorControlEXT);
     11:lightModel:lightModelLocalViewer:*pState->diff_api.LightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, to->lightModelLocalViewer==GL_TRUE);
     12:lightModel:lightModelTwoSide:*pState->diff_api.LightModeli(GL_LIGHT_MODEL_TWO_SIDE, to->lightModelTwoSide==GL_TRUE);
     13:lightModel:lightModelColorControlEXT:*pState->diff_api.LightModeli(GL_LIGHT_MODEL_COLOR_CONTROL_EXT, to->lightModelColorControlEXT);
    1414%flush
    1515:material:ambient[0]|r,g,b,a:Materialfv, GL_FRONT, GL_AMBIENT
     
    4141:attenuation:linearAttenuation:Lightf, GL_LIGHT0+i, GL_LINEAR_ATTENUATION
    4242:attenuation:quadraticAttenuation:Lightf, GL_LIGHT0+i, GL_QUADRATIC_ATTENUATION
    43 :position:*diff_api.MatrixMode(GL_MODELVIEW);
    44 :position:*diff_api.PushMatrix();
    45 :position:*diff_api.LoadIdentity();
     43:position:*pState->diff_api.MatrixMode(GL_MODELVIEW);
     44:position:*pState->diff_api.PushMatrix();
     45:position:*pState->diff_api.LoadIdentity();
    4646:position:position|x,y,z,w:Lightfv, GL_LIGHT0+i, GL_POSITION
    47 :position:*diff_api.PopMatrix();
    48 :position:*diff_api.MatrixMode(toCtx->transform.matrixMode);
    49 :spot:*diff_api.MatrixMode(GL_MODELVIEW);
    50 :spot:*diff_api.PushMatrix();
    51 :spot:*diff_api.LoadIdentity();
     47:position:*pState->diff_api.PopMatrix();
     48:position:*pState->diff_api.MatrixMode(toCtx->transform.matrixMode);
     49:spot:*pState->diff_api.MatrixMode(GL_MODELVIEW);
     50:spot:*pState->diff_api.PushMatrix();
     51:spot:*pState->diff_api.LoadIdentity();
    5252:spot:spotDirection|x,y,z:Lightfv, GL_LIGHT0+i, GL_SPOT_DIRECTION
    5353:spot:spotExponent:Lightf, GL_LIGHT0+i, GL_SPOT_EXPONENT
    5454:spot:spotCutoff:Lightf, GL_LIGHT0+i, GL_SPOT_CUTOFF
    55 :spot:*diff_api.PopMatrix();
    56 :spot:*diff_api.MatrixMode(toCtx->transform.matrixMode);
     55:spot:*pState->diff_api.PopMatrix();
     56:spot:*pState->diff_api.MatrixMode(toCtx->transform.matrixMode);
    5757%flush
    5858>CLEARDIRTY(lb->dirty, nbitID);
Note: See TracChangeset for help on using the changeset viewer.

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