Hello everyone! I am trying to learn LWJGL (OpenGL) and i have encountered a problem:
I am trying to make an editor for a Tilebased Map, so i want to make a menu that will open when i right-click any tile.
Check this images:


As you can see, when i render the menu (the black square that is on top of tiles), the grid doesn't render anymore... I mean, it renders, but in black (the grid isn't made from lines, is made of quads rendered with a transparent texture).
What can i do?
EDIT: The menu is rendered using this code:
1 2 3 4 5 6 7 8 9 10 11
| glColor3f(0f, .5f, 0f); glBegin(GL_QUADS); glVertex2f(x, y); glVertex2f(x + width, y); glVertex2f(x + width, y + height); glVertex2f(x, y + height); glEnd(); for(int i=0 ; i < buttons.size(); i++) { ((Button) buttons.get(i)).renderButton(); } |