| 180 | } |
| 181 | |
| 182 | void GraphicsContextGL::ClearColBufferAndDepth(const c32 & colour) |
| 183 | { |
| 184 | glDepthMask(GL_TRUE); |
| 185 | glClearDepth( 1.0f ); |
| 186 | glClearColor( colour.GetRf(), colour.GetGf(), colour.GetBf(), colour.GetAf() ); |
| 187 | glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ); |
| 188 | } |
| 189 | |
| 190 | void GraphicsContextGL::BeginFrame() |
| 191 | { |