LWJGL Forum

Programming => OpenGL => Topic started by: simonhyttfors on May 12, 2013, 16:13:47

Title: How to paint a blue background
Post by: simonhyttfors on May 12, 2013, 16:13:47
How would you go with painting a simple blue sky as a background?
Title: Re: How to paint a blue background
Post by: kappa on May 12, 2013, 18:38:48
A few different ways you can do this, like drawing a skybox or even a blue quad.

The simplest however is probably just clearing the background with the color you want.

GL11.glClearColor(0f, 0f, 1f, 1f);
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT );