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/particle_engine.cc

    r312 r313  
    485485        info->particles = new particle[ data->quota ];
    486486        info->quads     = new particle_quad[ data->quota ];
    487         info->vtx_array = m_device->create_vertex_array<particle_vtx>(
     487        info->vtx_array = m_context->create_vertex_array<particle_vtx>(
    488488                (particle_vtx*)info->quads, data->quota*6, STREAM_DRAW );
    489         info->vtx_buffer = m_device->find_buffer( info->vtx_array, slot::POSITION );
     489        info->vtx_buffer = m_context->find_buffer( info->vtx_array, slot::POSITION );
    490490        info->last_update = 0;
    491491        info->test = false;
     
    519519                delete[] info->quads;
    520520                //if ( system->own_va )
    521                 m_device->release( info->vtx_array );
     521                m_context->release( info->vtx_array );
    522522                m_systems.destroy( system );
    523523        }
Note: See TracChangeset for help on using the changeset viewer.