Package Hexel.rendering

Examples of Hexel.rendering.GLObj.render()


    gl.glPushMatrix();
    gl.glTranslated((float)x+xlen/2, (float)y+ylen/2, (float)z);
    gl.glScaled(.5, .5, .5);
    gl.glRotated(this.dir*180/Math.PI, 0, 0, 1);
    gl.glRotated(90, 1, 0, 0);
    obj.render(gl);
    gl.glPopMatrix();
  }

}
View Full Code Here


    gl.glPushMatrix();
    gl.glTranslated((float)x+xlen/2, (float)y+ylen/2, (float)z);
    gl.glScaled(1, 1, 1);
    gl.glRotated(this.dir*180/Math.PI, 0, 0, 1);
    gl.glRotated(90, 1, 0, 0);
    obj.render(gl);
    gl.glPopMatrix();
  }

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