So this is my problem.
I’m not sure why I’m getting the black gap and it’s really bugging me. It disappears when I resize the window. This is my code:
Setting up the window:
Display.setDisplayMode(new DisplayMode(800, 600));
Initializing the camera:
glOrtho(0, 800, 0, 600, 1, -1);
Rendering:
@Override
public void render() {
glClearColor(1f, 0f, 0f, 0f);
glClear(GL_COLOR_BUFFER_BIT);
glPushMatrix();
glTranslatef(x, y, 0);
glBegin(GL_QUADS);
glVertex2f(0, 0);
glVertex2f(100, 0);
glVertex2f(100, 100);
glVertex2f(0, 100);
glEnd();
glPopMatrix();
}
Am I missing something or am I doing something wrong?