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

How to use SUM() in MySQL for calculated values -

ios - IBOutlet for image button not correctly referencing button after recreating outlet -

java - AEM: 403 Forbidden occurs when call a Post servlet -