Changeset 503 for trunk/src/gl/gl_enum.cc
- Timestamp:
- 06/28/16 21:09:19 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_enum.cc
r500 r503 28 28 } 29 29 30 unsigned int nv::clear_state_buffers_to_mask( clear_state::buffers_typetype )30 unsigned int nv::clear_state_buffers_to_mask( buffer_mask type ) 31 31 { 32 32 unsigned int mask = 0; 33 if ( (type & clear_state::COLOR_BUFFER) != 0 ) mask |= GL_COLOR_BUFFER_BIT;34 if ( (type & clear_state::DEPTH_BUFFER) != 0 ) mask |= GL_DEPTH_BUFFER_BIT;35 if ( (type & clear_state::STENCIL_BUFFER) != 0 ) mask |= GL_STENCIL_BUFFER_BIT;33 if ( (type & buffer_mask::COLOR_BUFFER) != 0 ) mask |= GL_COLOR_BUFFER_BIT; 34 if ( (type & buffer_mask::DEPTH_BUFFER) != 0 ) mask |= GL_DEPTH_BUFFER_BIT; 35 if ( (type & buffer_mask::STENCIL_BUFFER) != 0 ) mask |= GL_STENCIL_BUFFER_BIT; 36 36 return mask; 37 37 }
Note: See TracChangeset
for help on using the changeset viewer.