Changeset 45 for trunk/src/gl/gl_context.cc
- Timestamp:
- 05/28/13 17:55:52 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_context.cc
r44 r45 353 353 force_apply_render_state( m_render_state ); 354 354 } 355 356 void gl_context::draw( primitive prim, const render_state& rs, program* p, vertex_array* va, int count ) 357 { 358 apply_render_state( rs ); 359 p->bind(); 360 va->bind(); 361 glDrawArrays( primitive_to_enum(prim), 0, count); 362 va->unbind(); 363 p->unbind(); 364 }
Note: See TracChangeset
for help on using the changeset viewer.