Package javax.media.opengl

Examples of javax.media.opengl.GL2.glPopAttrib()


          gl.glVertex2f(x, y);
        }
      }
      gl.glEnd();
      // pop the current color
      gl.glPopAttrib();
    }

    // render the polygon and the circle
    Drawer.draw(drawable, (Polygon)this.shapes[0], (Circle)this.shapes[1], false);  
View Full Code Here


    }

    // render the polygon and the circle
    Drawer.draw(drawable, (Polygon)this.shapes[0], (Circle)this.shapes[1], false);  

    gl.glPopAttrib(); // pop attributes to restore
   
    //gl.glPushAttrib(GL2.GL_CURRENT_BIT); // push attributes to set scope of color changes
    if(((Polygon)this.shapes[0]).vertices().size()>2){
      //color = this.shapes[0].getColor();
      //gl.glColor3f(color.getRed(),color.getGreen(),color.getBlue());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.