Example usage for android.opengl GLES20 GL_POINTS

List of usage examples for android.opengl GLES20 GL_POINTS

Introduction

In this page you can find the example usage for android.opengl GLES20 GL_POINTS.

Prototype

int GL_POINTS

To view the source code for android.opengl GLES20 GL_POINTS.

Click Source Link

Usage

From source file:com.google.fpl.liquidfunpaint.ParticleRenderer.java

/**
 * Issue the correct draw call for the ParticleGroup that is passed in.
 */// w  ww  .  j  a  v  a  2s  .  c  o m
private void drawParticleGroup(ParticleGroup pg) {
    // Get the buffer offsets
    int particleCount = pg.getParticleCount();
    int instanceOffset = pg.getBufferIndex();

    // Draw!
    GLES20.glDrawArrays(GLES20.GL_POINTS, instanceOffset, particleCount);
}