Package javax.microedition.khronos.opengles

Examples of javax.microedition.khronos.opengles.GL11.glActiveTexture()


        gl.glEnable(GL10.GL_LIGHT0);

        // The default light is white with direction (0, 0 ,-1)

        // Load texture
        gl.glActiveTexture(GL10.GL_TEXTURE0);
        final EncodedImage encodedImage =
                EncodedImage.getEncodedImageResource("BlackBerry.png");
        createTexture(gl, encodedImage, GL10.GL_RGB,
                GL10.GL_UNSIGNED_SHORT_5_6_5);
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.