Changeset 121 for trunk/src/gl/gl_context.cc
- Timestamp:
- 06/15/13 17:47:57 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_context.cc
r116 r121 83 83 } 84 84 85 void gl_context::apply_stencil_face( intface, stencil_test_face& stencil, const stencil_test_face& new_stencil )85 void gl_context::apply_stencil_face( unsigned face, stencil_test_face& stencil, const stencil_test_face& new_stencil ) 86 86 { 87 87 if (( stencil.op_fail != new_stencil.op_fail ) || … … 317 317 } 318 318 319 void gl_context::force_apply_stencil_face( intface, const stencil_test_face& stencil )319 void gl_context::force_apply_stencil_face( unsigned face, const stencil_test_face& stencil ) 320 320 { 321 321 glStencilOpSeparate( face, … … 356 356 } 357 357 358 void gl_context::draw( primitive prim, const render_state& rs, program* p, vertex_array* va, int count )358 void gl_context::draw( primitive prim, const render_state& rs, program* p, vertex_array* va, size_t count ) 359 359 { 360 360 apply_render_state( rs ); … … 365 365 if ( va->has_index_buffer() ) 366 366 { 367 glDrawElements( primitive_to_enum(prim), count, datatype_to_gl_enum( va->get_index_buffer_type() ), 0 );367 glDrawElements( primitive_to_enum(prim), static_cast<GLsizei>( count ), datatype_to_gl_enum( va->get_index_buffer_type() ), 0 ); 368 368 } 369 369 else 370 370 { 371 glDrawArrays( primitive_to_enum(prim), 0, count);371 glDrawArrays( primitive_to_enum(prim), 0, static_cast<GLsizei>( count ) ); 372 372 } 373 373 va->unbind();
Note: See TracChangeset
for help on using the changeset viewer.