user10702679
user10702679

Reputation: 69

How do I set background color to white in libgdx?

How do I set the background color to white in LIBGDX using just Gdx.gl.glClearColor(x,x,x,x);??? if not then is it possible to draw a white batch as background but still render other actors on top of it?

Upvotes: 1

Views: 706

Answers (1)

Stanislav Batura
Stanislav Batura

Reputation: 420

Just use

Gdx.gl.glClearColor(1f, 1f, 1f, 1f);

Upvotes: 2

Related Questions