summaryrefslogtreecommitdiffstats
path: root/example.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-12-03 07:27:15 +0100
committerRemi Collet <fedora@famillecollet.com>2013-12-03 07:27:15 +0100
commit14bec8651175874f3c87eaef8f4b7e73aa152e6e (patch)
tree4319048dcc4c7343ca3e2388af397e54e0668a56 /example.php
parentbbe66175e041d07c561c623f6451b062374d7d38 (diff)
php-pecl-sdl: 0.9.2
Diffstat (limited to 'example.php')
-rw-r--r--example.php37
1 files changed, 0 insertions, 37 deletions
diff --git a/example.php b/example.php
deleted file mode 100644
index 4ac324e..0000000
--- a/example.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-/**
- * Example of how to change screen properties such as title, icon or state using the PHP-SDL extension.
- *
- * @author Santiago Lizardo <santiagolizardo@php.net>
- */
-
-// require 'common.php';
-
-SDL_Init( SDL_INIT_VIDEO );
-
-$screen = SDL_SetVideoMode( 640, 480, 16, SDL_HWSURFACE );
-if( null == $screen )
-{
- fprintf( STDERR, 'Error: %s' . PHP_EOL, SDL_GetError() );
-}
-
-for( $i = 3; $i > 0; $i-- )
-{
- SDL_WM_SetCaption( "Switching to fullscreen mode in $i seconds...", null );
- SDL_Delay( 1000 );
-}
-
-SDL_WM_ToggleFullscreen( $screen );
-
-SDL_Delay( 3000 );
-
-SDL_WM_ToggleFullscreen( $screen );
-
-SDL_WM_SetCaption( "Back from fullscreen mode. Quitting in 2 seconds...", null );
-
-SDL_Delay( 2000 );
-
-SDL_FreeSurface( $screen );
-
-SDL_Quit();
-