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:
http://uploadimage.ro/images/23180354201860657379.png
http://uploadimage.ro/images/60472711453550609877.png
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:
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();
}