Reputation: 100
I am new to Android and OpenGL both. I want to draw a series of 3D given points in android with open GL where last point should blink. I have drawn square, pyramid and triangle but still not able to draw above-mentioned thing. Easy method will be appreciated.
Upvotes: 1
Views: 1518
Reputation: 1853
You can draw points by using GL_POINTS mode if you're running OpenGL ES 1.0 or 1.1, with 2.0+ you need to perform some trickery in order to draw points
Apparantly 2.0 supports point sprites too(see comments below), so the simplest answer is to use point sprites
You can either draw circles formed from triangles or quads that are textured with circles
Drawing points doesn't differiate in any way from drawing any other shapes, you should just use different drawing mode assuming you're using fixed pipeline, or draw points by drawing cirlces or textured quads
Upvotes: 1