Ignore:
Timestamp:
05/28/13 17:55:52 (12 years ago)
Author:
epyon
Message:
  • temporary draw for context (and implementation)
  • cleaned up warnings
  • general cleanups
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gl/gl_context.cc

    r44 r45  
    353353        force_apply_render_state( m_render_state );
    354354}
     355
     356void 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.