Opengl Es 31 Android Top -

// Draw a triangle float[] vertices = { -0.5f, -0.5f, 0.0f, 0.5f, -0.5f, 0.0f, 0.0f, 0.5f, 0.0f };

public class OpenGLES31Example extends GLSurfaceView { private static final String TAG = "OpenGLES31Example"; opengl es 31 android top

Here is an example code snippet that demonstrates how to create an OpenGL ES 3.1 context and render a triangle on Android: // Draw a triangle float[] vertices = { -0

import android.opengl.GLES30; import android.opengl.GLSurfaceView; import android.opengl.Matrix; opengl es 31 android top

GLES30.glUseProgram(program); GLES30.glDrawArrays(GLES30.GL_TRIANGLES, 0, 3); }

Попробовать бесплатно