Changeset 501 for trunk/src/engine/particle_engine.cc
- Timestamp:
- 06/15/16 18:34:37 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/engine/particle_engine.cc
r500 r501 320 320 321 321 data.quota = table.get<uint32>("quota", 1024 ); 322 data.local = table.get<bool>("local_space", false );322 // data.local = table.get<bool>("local_space", false ); 323 323 data.accurate_facing = table.get<bool>("accurate_facing", false ); 324 324 data.emmiter_count = 0; … … 467 467 { 468 468 m_context = a_context; 469 m_device = a_context->get_device(); 470 m_program_local = m_device->create_program( nv_particle_engine_vertex_shader_local, nv_particle_engine_fragment_shader ); 471 m_program_world = m_device->create_program( nv_particle_engine_vertex_shader_world, nv_particle_engine_fragment_shader ); 469 m_program_local = m_context->create_program( nv_particle_engine_vertex_shader_local, nv_particle_engine_fragment_shader ); 470 m_program_world = m_context->create_program( nv_particle_engine_vertex_shader_world, nv_particle_engine_fragment_shader ); 472 471 473 472 register_standard_emmiters(); … … 533 532 info->count = 0; 534 533 info->quota = max_particles; 535 info->vtx_buffer = m_ device->create_buffer( VERTEX_BUFFER, STREAM_DRAW, info->quota * sizeof( particle_quad )/*, info->quads_[0].data*/ );534 info->vtx_buffer = m_context->create_buffer( VERTEX_BUFFER, STREAM_DRAW, info->quota * sizeof( particle_quad )/*, info->quads_[0].data*/ ); 536 535 vertex_array_desc desc; 537 536 desc.add_vertex_buffers< particle_vtx >( info->vtx_buffer, true ); … … 545 544 { 546 545 clear(); 547 m_ device->release( m_program_world );548 m_ device->release( m_program_local );546 m_context->release( m_program_world ); 547 m_context->release( m_program_local ); 549 548 } 550 549 … … 785 784 vec3 source; 786 785 mat3 orient; 787 bool local = info->data->local;786 // bool local = info->data->local; 788 787 // if ( !local ) 789 788 // {
Note: See TracChangeset
for help on using the changeset viewer.