Examples of glBitmap()


Examples of javax.media.opengl.GL.glBitmap()

//        Point3D center = getGlmain3d().getSphere().getPoint(marker.point);
        Point3D center = marker.getPoint();
       
        gl.glLoadIdentity();
        gl.glRasterPos3d(center.x, center.y, center.z);
        gl.glBitmap(0, 0, 0, 0, -marker.getIcon().getWidth()/2, 0, null); // move raster position
        gl.glDrawPixels(marker.getIcon().getWidth(), marker.getIcon().getHeight(), GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, marker.getIconBuffer());
//        gl.glBitmap(0, 0, 0, 0, icon.getWidth()/2, 0, null); // move raster position
//        glut.glutBitmapString(GLUT.BITMAP_HELVETICA_10, "TestTestTest");
      }
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.