Ignore:
Timestamp:
07/08/14 21:49:37 (11 years ago)
Author:
epyon
Message:
  • animation key raw sizes (the whole system will be dumped though)
  • bugfix for string_table
  • nv::slot is now an enum class
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gfx/keyframed_mesh.cc

    r280 r281  
    139139        m_loc_next_position = a_program->get_attribute( "nv_next_position" )->get_location();
    140140        m_loc_next_normal   = a_program->get_attribute( "nv_next_normal" )->get_location();
    141         m_va = a_device->create_vertex_array( a_data, nv::STATIC_DRAW );
    142         vertex_buffer* vb = m_va->find_buffer( nv::POSITION );
    143         m_va->add_vertex_buffer( m_loc_next_position, vb, nv::FLOAT, 3, 0,              sizeof( vertex_pn ), false );
    144         m_va->add_vertex_buffer( m_loc_next_normal,   vb, nv::FLOAT, 3, sizeof( vec3 ), sizeof( vertex_pn ), false );
     141        m_va = a_device->create_vertex_array( a_data, STATIC_DRAW );
     142        vertex_buffer* vb = m_va->find_buffer( slot::POSITION );
     143        m_va->add_vertex_buffer( m_loc_next_position, vb, FLOAT, 3, 0,              sizeof( vertex_pn ), false );
     144        m_va->add_vertex_buffer( m_loc_next_normal,   vb, FLOAT, 3, sizeof( vec3 ), sizeof( vertex_pn ), false );
    145145}
    146146
Note: See TracChangeset for help on using the changeset viewer.