create opengl Texture - Android android.opengl

Android examples for android.opengl:OpenGL Texture

Description

create opengl Texture

Demo Code


//package com.java2s;

import android.util.Log;
import javax.microedition.khronos.opengles.GL10;

public class Main {
    private static final String TAG = "GLHelper";

    public static int createTexture(GL10 gl) {
        int[] textures = new int[1];
        gl.glGenTextures(1, textures, 0);

        Log.d(TAG, "Created Texture: " + textures[0]);

        return textures[0];
    }/*from  ww  w.  j av  a 2  s .  c  om*/
}

Related Tutorials