how to draw points as textures/text on touch in opengl-es in android? -


i want draw points on touch. each point loads textures/default text shown below.how start draw kind of stuff in opengl-es in android?

texture

text

to use texture point, can use these lines of code in fragment shader.

lowp vec4 diffuse_color = texture2d(texture1, gl_pointcoord); gl_fragcolor = vec4(color.xyz, diffuse_color.x); 

make sure gl_pointsize in vertex shader large enough.


Comments

Popular posts from this blog

ruby on rails - ActiveRecord order not working -

javascript - How do you prevent nested queries/catches in sequelize? -

java - ConcurrentModificationException upon committing transaction with Hibernate -