I am currently playing with Lesson 08
I would like To convert the background color from black to white, at the beginning of the dredfryme () I have said
gl.glClearColor (1.0f, 0.0f, 0.0f, 0.0f);
It is actually set to have a white background screen, but nothing is visible on the screen! Obviously this is a wrong way, but why, and how do I fix it ?!
Many thanks in advance.
Edit (after 5 days): Does anyone know at all? !!
The white screen is because you have set the alpha value for 0.04.
The parameter signature is: - gl.glClearColor (float red, float green, float blue, float alpha)
where floats have a value between 0.0 and 1.0.
More alpha float value is more opaque screen.
Comments
Post a Comment