Neither
sb.setBlendFunction(GL10.GL_ONE_MINUS_DST_COLOR, GL10.GL_ZERO); sb.begin(); font.setColor(1, 1, 1, 1); for (LineRect s: vertices){ font.draw(sb,""+ s.x+","+.y, sx, sy); } sb.end(); sb.setBlendFunction(GL10.GL_ONE, GL10.GL_ONE_MINUS_SRC_ALPHA);
neither
Gdx.gl10.glEnable(GL10.GL_COLOR_LOGIC_OP); Gdx.gl10.glLogicOp(GL10.GL_XOR); sb.begin(); font.setColor(1, 1, 1, 1); for (LineRect s: vertices){ font.draw(sb,""+ s.x+","+.y, sx, sy); } sb.end(); Gdx.gl10.glDisable(GL10.GL_COLOR_LOGIC_OP);
Worked for me, what am I doing wrong? How to fix it?
The idea is to draw a font consisting of ATVs with partially transparent textures, so that it will always be visible unless the background is 50% gray. Background black = font makes white, etc.
Erius source share