Ignore:
Timestamp:
08/18/14 23:25:46 (11 years ago)
Author:
epyon
Message:
  • cleanup of context and device interfaces
  • create_vertex_array moved to context (as it's context bound)
  • added partial framebuffer functions to context
File:
1 edited

Legend:

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

    r303 r313  
    2626        m_vtx_data  = a_mesh_data->get_channel_data<md5_vtx_pntiw>();
    2727        m_indices   = a_mesh_data->get_count();
    28         m_va        = a_context->get_device()->create_vertex_array( a_mesh_data,
     28        m_va        = a_context->create_vertex_array( a_mesh_data,
    2929STREAM_DRAW );
    30         m_pbuffer   = a_context->get_device()->find_buffer( m_va, slot::POSITION );
     30        m_pbuffer   = a_context->find_buffer( m_va, slot::POSITION );
    3131}
    3232
     
    195195        : skeletal_mesh( a_context ), m_bone_data( a_bone_data ), m_transform( nullptr )
    196196{
    197         m_va          = a_context->get_device()->create_vertex_array( a_mesh, nv::STATIC_DRAW );
     197        m_va          = a_context->create_vertex_array( a_mesh, nv::STATIC_DRAW );
    198198        m_index_count = a_mesh->get_count();
    199199        if ( m_bone_data )
Note: See TracChangeset for help on using the changeset viewer.