#!/bin/bash

# Copyright (C) 2007 Pâris Quentin

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 

if [ "$PLAYONLINUX" = "" ]
then
	exit 0
fi

source "$PLAYONLINUX/lib/sources" 

POL_SetupWindow_Init "$REPERTOIRE/plugins/Benchmarks/setup/top.jpg"  "$REPERTOIRE/plugins/Benchmarks/setup/left.jpg"
POL_SetupWindow_free_presentation "Benchmarks" "This plugin will permit your to test your 3D Card performances"
POL_SetupWindow_menu "Choose the test" "Benchmarks" "Glxgears Glxmulx Glxmulx1.2 GlxTinou" " "
menu_option_tests=$APP_ANSWER
POL_SetupWindow_wait_next_signal "We are doing the test for you..." "Benchmarks"
if [ "$menu_option_tests" = "Glxmulx" ]
then
	source "$REPERTOIRE/plugins/Benchmarks/bin/test_glxmulx"
fi
if [ "$menu_option_tests" = "Glxmulx1.2" ]
then
	source "$REPERTOIRE/plugins/Benchmarks/bin/test_glxmulx1.2"
fi		
if [ "$menu_option_tests" = "Glxgears" ]
then
	source "$REPERTOIRE/plugins/Benchmarks/bin/test_gears"
fi	
if [ "$menu_option_tests" = "GlxTinou" ]
then
	source "$REPERTOIRE/plugins/Benchmarks/bin/test_glxtinou"
fi
POL_SetupWindow_Close
