Search code examples
androidopengl-eslwjglpixel

OpenGL ES single pixel drawing android


So I made an app using lwjgl for the computer and was trying to make it for android however I can't find replacement for the command glVertex3f() which I use for drawing a single pixel which my app needs to do to set the color per pixel. Is there a way to do per pixel coloring in openGL ES for android, or an alternative?


Solution

  • You could use GL_POINTS for the mode parameter of the glDraw* function. This way you could render one pixel at a time.