Changeset 509 for trunk/src/engine/default_resource_manager.cc
- Timestamp:
- 07/26/16 20:24:02 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/engine/default_resource_manager.cc
r508 r509 9 9 using namespace nv; 10 10 11 default_resource_manager::default_resource_manager( context* context )11 default_resource_manager::default_resource_manager( context* context, bool clear_material_paths ) 12 12 { 13 13 m_images = register_resource_handler< image_data >( new image_manager ); … … 15 15 m_binds = register_resource_handler< animator_bind_data >( new animator_bind_manager ); 16 16 m_animators = register_resource_handler< animator_data >( new animator_manager ); 17 m_materials = register_resource_handler< material >( new material_manager );17 m_materials = register_resource_handler< material >( new material_manager( clear_material_paths ) ); 18 18 m_programs = register_resource_handler< program >( new program_manager( context ) ); 19 19 m_gpu_meshes = register_resource_handler< gpu_mesh >( new gpu_mesh_manager( context, m_meshes ) ); … … 27 27 m_lua = lua; 28 28 29 m_lua->register_enum( "RND_LINEAR", static_cast<int>( random_dist::LINEAR ) ); 30 m_lua->register_enum( "RND_GAUSSIAN", static_cast<int>( random_dist::GAUSSIAN ) ); 31 m_lua->register_enum( "RND_RGAUSSIAN", static_cast<int>( random_dist::RGAUSSIAN ) ); 32 m_lua->register_enum( "RND_STEP_1", static_cast<int>( random_dist::STEP_1 ) ); 33 m_lua->register_enum( "RND_STEP_2", static_cast<int>( random_dist::STEP_2 ) ); 34 m_lua->register_enum( "RND_STEP_3", static_cast<int>( random_dist::STEP_3 ) ); 35 m_lua->register_enum( "RND_STEP_4", static_cast<int>( random_dist::STEP_4 ) ); 36 m_lua->register_enum( "RND_LINEAR", static_cast<int>( random_dist::LINEAR ) ); 37 m_lua->register_enum( "RND_MGAUSSIAN", static_cast<int>( random_dist::MGAUSSIAN ) ); 38 m_lua->register_enum( "RND_MRGAUSSIAN", static_cast<int>( random_dist::MRGAUSSIAN ) ); 39 m_lua->register_enum( "RND_MSTEP_1", static_cast<int>( random_dist::MSTEP_1 ) ); 40 m_lua->register_enum( "RND_MSTEP_2", static_cast<int>( random_dist::MSTEP_2 ) ); 41 m_lua->register_enum( "RND_MSTEP_3", static_cast<int>( random_dist::MSTEP_3 ) ); 42 m_lua->register_enum( "RND_MSTEP_4", static_cast<int>( random_dist::MSTEP_4 ) ); 43 29 44 m_lua->register_enum( "INT_NONE", static_cast<int>( interpolation::NONE ) ); 30 45 m_lua->register_enum( "INT_LINEAR", static_cast<int>( interpolation::LINEAR ) );
Note: See TracChangeset
for help on using the changeset viewer.