- Timestamp:
- 05/06/14 04:59:23 (11 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_device.cc
r228 r229 49 49 SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); 50 50 51 SDL_GL_SetAttribute( SDL_GL_MULTISAMPLEBUFFERS, 1 );52 SDL_GL_SetAttribute( SDL_GL_MULTISAMPLESAMPLES, 4 );51 // SDL_GL_SetAttribute( SDL_GL_MULTISAMPLEBUFFERS, 1 ); 52 // SDL_GL_SetAttribute( SDL_GL_MULTISAMPLESAMPLES, 4 ); 53 53 54 54 #if NV_SDL_VERSION == NV_SDL_20 -
trunk/src/resource_manager.cc
r45 r229 14 14 } 15 15 16 resource ::ptrresource_manager::get_raw_resource(uint32 id) const16 resource* resource_manager::get_raw_resource(uint32 id) const 17 17 { 18 18 return m_data[ id ]; 19 19 } 20 20 21 resource ::ptrresource_manager::get_raw_resource(const std::string& id) const21 resource* resource_manager::get_raw_resource(const std::string& id) const 22 22 { 23 23 auto i = m_id_map.find( id ); … … 26 26 return m_data[ (unsigned int)i->second ]; 27 27 } 28 return resource::ptr();28 return nullptr; 29 29 } 30 30 31 void resource_manager::register_resource_type( const std::string& name, resource_constructor_func c )31 void resource_manager::register_resource_type( const std::string& type_name, resource_constructor_func c ) 32 32 { 33 m_constructors[ name ] = c;33 m_constructors[ type_name ] = c; 34 34 } 35 35
Note: See TracChangeset
for help on using the changeset viewer.