| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 CHECK_GL_ERROR(); | 396 CHECK_GL_ERROR(); |
| 397 } | 397 } |
| 398 | 398 |
| 399 void GAPIGL::Clear(unsigned int buffers, | 399 void GAPIGL::Clear(unsigned int buffers, |
| 400 const RGBA &color, | 400 const RGBA &color, |
| 401 float depth, | 401 float depth, |
| 402 unsigned int stencil) { | 402 unsigned int stencil) { |
| 403 glClearColor(color.red, color.green, color.blue, color.alpha); | 403 glClearColor(color.red, color.green, color.blue, color.alpha); |
| 404 glClearDepth(depth); | 404 glClearDepth(depth); |
| 405 glClearStencil(stencil); | 405 glClearStencil(stencil); |
| 406 glClear((buffers & COLOR ? GL_COLOR_BUFFER_BIT : 0) | | 406 glClear((buffers & kColor ? GL_COLOR_BUFFER_BIT : 0) | |
| 407 (buffers & DEPTH ? GL_DEPTH_BUFFER_BIT : 0) | | 407 (buffers & kDepth ? GL_DEPTH_BUFFER_BIT : 0) | |
| 408 (buffers & STENCIL ? GL_STENCIL_BUFFER_BIT : 0)); | 408 (buffers & kStencil ? GL_STENCIL_BUFFER_BIT : 0)); |
| 409 CHECK_GL_ERROR(); | 409 CHECK_GL_ERROR(); |
| 410 } | 410 } |
| 411 | 411 |
| 412 } // namespace command_buffer | 412 } // namespace command_buffer |
| 413 } // namespace o3d | 413 } // namespace o3d |
| OLD | NEW |