/* call-seq: * window.getSettings() -> settings * * Get the settings of the OpenGL context of the window. * * Note that these settings may be different from what was passed to the constructor or the Create() function, if one * or more settings were not supported. In this case, SFML chose the closest match. */ static VALUE Window_GetSettings( VALUE self ) { sf::Window *object = NULL; Data_Get_Struct( self, sf::Window, object ); VALUE rbData = Data_Wrap_Struct( globalContextSettingsClass, 0, 0, const_cast<sf::ContextSettings *>( &object->GetSettings() ) ); rb_obj_call_init( rbData, 0, 0 ); return rbData; }