Changeset 229 for trunk/src


Ignore:
Timestamp:
05/06/14 04:59:23 (11 years ago)
Author:
epyon
Message:
  • framebuffer extension added to gl
  • various minro changes and fixes
Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gl/gl_device.cc

    r228 r229  
    4949        SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
    5050
    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 );
    5353
    5454#if NV_SDL_VERSION == NV_SDL_20
  • trunk/src/resource_manager.cc

    r45 r229  
    1414}
    1515
    16 resource::ptr resource_manager::get_raw_resource(uint32 id) const
     16resource* resource_manager::get_raw_resource(uint32 id) const
    1717{
    1818        return m_data[ id ];
    1919}
    2020
    21 resource::ptr resource_manager::get_raw_resource(const std::string& id) const
     21resource* resource_manager::get_raw_resource(const std::string& id) const
    2222{
    2323        auto i = m_id_map.find( id );
     
    2626                return m_data[ (unsigned int)i->second ];
    2727        }
    28         return resource::ptr();
     28        return nullptr;
    2929}
    3030
    31 void resource_manager::register_resource_type( const std::string& name, resource_constructor_func c )
     31void resource_manager::register_resource_type( const std::string& type_name, resource_constructor_func c )
    3232{
    33         m_constructors[ name ] = c;
     33        m_constructors[ type_name ] = c;
    3434}
    3535
Note: See TracChangeset for help on using the changeset viewer.