@Override
    public void run() {
        final FloatBuffer vertexBuffer = makeInterleavedBuffer(
                generatePositions(),
                generateTextureUv(),
                generateMisc(),
                ParticleSystem.PARTICLE_COUNT
        );
        mRenderer.queue(new Runnable() {
            @Override
            public void run() {
                mRenderer.setParticleSystem(new ParticleSystem(mRenderer, vertexBuffer));
            }
        });
    }
Started by Artem Kholodnyi on 11/29/15 6:13 PM -- com.yalantis.starwarsdemo.particlesys
demo/src/main/java/com/yalantis/starwarsdemo/particlesys/ParticlesGenerator.java