Examples of glutStrokeCharacter()


Examples of com.sun.opengl.util.GLUT.glutStrokeCharacter()

    // coordinate labels: X, Y, Z
    gl.glPushMatrix();
    gl.glTranslatef(xlen, 0, 0);
    gl.glScalef(xlen/WIDTH, xlen/WIDTH, 1);
    glut.glutStrokeCharacter(GLUT.STROKE_ROMAN, 'X');
    gl.glPopMatrix();

    gl.glPushMatrix();
    gl.glMaterialfv(GL.GL_FRONT, GL.GL_EMISSION, green,0);
    gl.glColor3f(0, 1, 0);
View Full Code Here

Examples of com.sun.opengl.util.GLUT.glutStrokeCharacter()

    gl.glPushMatrix();
    gl.glMaterialfv(GL.GL_FRONT, GL.GL_EMISSION, green,0);
    gl.glColor3f(0, 1, 0);
    gl.glTranslatef(0, ylen, 0);
    gl.glScalef(ylen/WIDTH, ylen/WIDTH, 1);
    glut.glutStrokeCharacter(GLUT.STROKE_ROMAN, 'Y');
    gl.glPopMatrix();

    gl.glPushMatrix();
    gl.glMaterialfv(GL.GL_FRONT, GL.GL_EMISSION, red,0);
    gl.glColor3f(1, 0, 0);
View Full Code Here

Examples of com.sun.opengl.util.GLUT.glutStrokeCharacter()

    gl.glPushMatrix();
    gl.glMaterialfv(GL.GL_FRONT, GL.GL_EMISSION, red,0);
    gl.glColor3f(1, 0, 0);
    gl.glTranslatef(0, 0, zlen);
    gl.glScalef(zlen/WIDTH, zlen/WIDTH, 1);
    glut.glutStrokeCharacter(GLUT.STROKE_ROMAN, 'Z');
    gl.glPopMatrix();

    gl.glMaterialfv(GL.GL_FRONT, GL.GL_EMISSION, black,0);
  }
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.