Examples of glPopAttrib()


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

        // Restore texture Matrix transform
        gl.glPopMatrix();

        gl.glMatrixMode(GL2.GL_MODELVIEW);
        // Restore attributes
        gl.glPopAttrib();

    }

    @Override
    void textureFillRaster(Context ctx, float texMinU, float texMaxU, float texMinV, float texMaxV,
View Full Code Here

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

            double[] mx = new double[16];
            copyTranspose(transform, mx);
            gl.glLoadMatrixd(mx, 0);
        }

        gl.glPopAttrib();

        // set texture color
        float[] color = new float[4];
        color[0] = textureBlendColorRed;
        color[1] = textureBlendColorGreen;
View Full Code Here

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

            drawCircle(drawable, circle, circle.getColor());
        }


        // restore the attributes
        gl.glPopAttrib();

    }

    ////////////////////////////////////////////////////////////////
    //  IMPLEMENT THE FUNCTIONS BELOW                     //////////
View Full Code Here

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

            }
            gl.glEnd();
        }

        // pop current color
        gl.glPopAttrib();
        gl.glDisable(GL.GL_STENCIL_TEST);
    }

    ////////////////////////////////////////////////////////////////
    //  IMPLEMENT THE FUNCTIONS ABOVE                     //////////
View Full Code Here

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

            gl.glVertex2f(vertex.x, vertex.y);

        gl.glEnd();

        // pop current color
        gl.glPopAttrib();
    }

    private static void drawCircle(final GLAutoDrawable drawable, final Circle circle, final Color color)
    {
View Full Code Here

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

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

    }

    // 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.