Hello Guest

How to paint a blue background

  • 1 Replies
  • 4993 Views
How to paint a blue background
« on: May 12, 2013, 16:13:47 »
How would you go with painting a simple blue sky as a background?

*

Offline kappa

  • *****
  • 1319
Re: How to paint a blue background
« Reply #1 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.

Code: [Select]
GL11.glClearColor(0f, 0f, 1f, 1f);
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT );