Advertisement
Guest User

Untitled

a guest
Oct 14th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #!/usr/bin/env perl
  2.  
  3. use 5.16.0;
  4.  
  5. use SDLx::App;
  6. use SDL::Events;
  7. use SDL::Event;
  8.  
  9. my $app = SDLx::App->new(width => 400, height => 300, gl => 1, title => 'abc');
  10.  
  11. sub _drawGLScene {
  12.  
  13. };
  14.  
  15. $app->add_event_handler( sub{ return 0 if $_[0]->type == SDL_QUIT; return 1});
  16. #$app->add_show_handler(sub { $app->update; });
  17. $app->add_show_handler(sub { _drawGLScene(); $app->sync; });
  18. $app->add_move_handler( sub { } );
  19.  
  20. $app->run;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement