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

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -