21/05/01
Claudio Rocchini
20
Dragging 3
• // Colore disegno: bianco
•glGetMaterialfv( GL_FRONT, GL_EMISSION ,oldEColor );
•glMaterialfv( GL_FRONT_AND_BACK, GL_EMISSION, white );
•
• // Abilitazione motalita’ xor tramite la funzione
• // blending: colore = 1 – colore_sfondo;
•BlendingIsE = glIsEnabled( GL_BLEND );
•glEnable( GL_BLEND );
•glGetIntegerv( GL_BLEND_SRC, & BlendFun1 );
•glGetIntegerv( GL_BLEND_DST, & BlendFun2 );
•glBlendFunc( GL_ONE_MINUS_DST_COLOR, GL_ZERO );