/* call-seq:
 *   window.useVerticalSync( enabled )
 *
 * Enable or disable vertical synchronization.
 *
 * Activating vertical synchronization will limit the number of frames displayed to the refresh rate of the monitor. 
 * This can avoid some visual artifacts, and limit the framerate to a good value (but not constant across different 
 * computers).
 *
 * Vertical synchronization is disabled by default.
 */
static VALUE Window_UseVerticalSync( VALUE self, VALUE aEnableFlag )
{
        sf::Window *object = NULL;
        Data_Get_Struct( self, sf::Window, object );
        if( aEnableFlag == Qfalse )
        {
                object->UseVerticalSync( false );
        }
        else if( aEnableFlag == Qtrue )
        {
                object->UseVerticalSync( true );
        }
        else
        {
                rb_raise( rb_eTypeError, "Expected true or false" );
        }
        return Qnil;
}