Examples of GLUquadric


Examples of javax.media.opengl.glu.GLUquadric

        FloatBuffer specular_metal = FloatBuffer.wrap(blancCasse);
        FloatBuffer shininess_metal = FloatBuffer.wrap(shine_low);
        //End

        //Quadric for all the glu models
        GLUquadric quadric = glu.gluNewQuadric();
        int ptr = gl.glGenLists(4);

        // Metal material display list
        int MATTER_METAL = ptr;
        gl.glNewList(MATTER_METAL, GL2.GL_COMPILE);
View Full Code Here

Examples of javax.media.opengl.glu.GLUquadric

    // For T (NEW)
    gl.glBindTexture(GL.GL_TEXTURE_2D, textures[OVAL_TEXTURE]);
    gl.glPushMatrix();

    gl.glPushName(shapeNames++);
    GLUquadric qobj0 = glu.gluNewQuadric();

    double x = fromx + (tox / 2.0d);
    double y = fromy + (toy / 2.0d);

    gl.glTranslated(x / 100.0d, y / 100.0d, z);
View Full Code Here

Examples of javax.media.opengl.glu.GLUquadric

  }

  public void fillRectangle(double x1, double y1, double width, double height) {
    gl.glPushMatrix();
    gl.glPushName(shapeNames++);
    GLUquadric qobj0 = glu.gluNewQuadric();

    gl.glTranslated(((x1 + (width / 2)) / 100.0d), ((y1 + (width / 2)) / 100.0d), z);
    gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL.GL_FILL);
    glu.gluQuadricDrawStyle(qobj0, GLU.GLU_FILL);
    glu.gluQuadricNormals(qobj0, GLU.GLU_SMOOTH);
View Full Code Here

Examples of javax.media.opengl.glu.GLUquadric

    float[] newcolor = rgb2float(getColor());
    gl.glColor3f(newcolor[0], newcolor[1], newcolor[2]);

    gl.glPushName(shapeNames++);
    GLUquadric qobj0 = glu.gluNewQuadric();
    gl.glTranslated(fromx, fromy, z);
    // rotate 90 degrees on the x axis
    gl.glRotated(90.0f, 1.0f, 0.0f, 0.0f);
    // rotate on the y axis
    gl.glRotated(calclAngle(fromx, fromy, tox, toy), 0.0f, 1.0f, 0.0f);
View Full Code Here

Examples of javax.media.opengl.glu.GLUquadric

    // gl.glBindTexture(GL.GL_TEXTURE_2D,
    // panel.getGraphicsAdapter().getTextures()[2]);

    gl.glPushMatrix();
    gl.glColor3f(0.0f, 0.8f, 0.2f);
    GLUquadric qobj0 = glu.gluNewQuadric();
    gl.glTranslated(spinningCameraX, spinningCameraY, spinningCameraZ);
    gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL.GL_FILL);
    glu.gluQuadricDrawStyle(qobj0, GLU.GLU_LINE);
    glu.gluQuadricNormals(qobj0, GLU.GLU_SMOOTH);
    glu.gluSphere(qobj0, 0.3d, 8, 8);
    glu.gluDeleteQuadric(qobj0);
    gl.glPopMatrix();

    gl.glPushMatrix();
    gl.glColor3f(0.8f, 0.2f, 0.0f);
    GLUquadric qobj1 = glu.gluNewQuadric();
    gl.glTranslated(x, y, z);
    gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL.GL_FILL);
    glu.gluQuadricDrawStyle(qobj1, GLU.GLU_LINE);
    glu.gluQuadricNormals(qobj1, GLU.GLU_SMOOTH);
    glu.gluSphere(qobj1, 0.3d, 8, 8);
View Full Code Here

Examples of javax.media.opengl.glu.GLUquadric

    // For T (NEW)
    gl.glBindTexture(GL.GL_TEXTURE_2D, panel.getGraphicsAdapter().getTextures()[JOGLGraphicsAdapter.DOME_TEXTURE]);

    gl.glPushMatrix();
    gl.glColor3f(0.1f, 1.0f, 1.0f);
    GLUquadric qobj0 = glu.gluNewQuadric();
    gl.glTranslatef(0, 0, 0);
    gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL.GL_FILL);
    glu.gluQuadricDrawStyle(qobj0, GLU.GLU_FILL);
    glu.gluQuadricNormals(qobj0, GLU.GLU_SMOOTH);
    glu.gluQuadricOrientation(qobj0, GLU.GLU_INSIDE);
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.