android OpenGl How to draw a rectangle
问题 I wnat to draw a rectangle using opengl. package jnidemo.example.com.openglsquare; import android.content.Context; import android.opengl.GLSurfaceView; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.FloatBuffer; import java.nio.ShortBuffer; import javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.opengles.GL10;