While a considerable noob to openGL I still managed to make most of a TicTacToe game (using lwjgl with GL11 quads). the issue comes when I want to write something like “X wins!” to the display. I tried using the slick-util example from the wiki but the extra GL commands in the init messes up the visuals in a few ways:
the main issue is with GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- if it’s commented out, the game renders fine but the text doesn’t appear and instead there’s yellow rectangle (because the text is in yellow) where the text should have been.
- if I leave it uncommented then the text will appear fine but the graphics of the rest of the game don’t appear immediately upon running, instead they fade slowly into view. and even then there will be a background rectangle to the text.
note: If I just copy-pasta their example into a new project it works as intended.
I’ve seen quite a few answers to the first issue and people replied that it needs the glBlenFunc but then it messes up everything.