FreeWRL
view release on metacpan or search on metacpan
GLBackEnd.pm view on Meta::CPAN
# Set the sub used to go forwards/backwards in VP list
sub set_vp_sub {
$_[0]{VPSub} = $_[1];
}
sub quitpressed {
return delete $_[0]{QuitPressed};
}
sub update_scene {
my($this,$time) = @_;
while(XPending()) {
# print "UPDS: Xpend:",XPending(),"\n";
my @e = &glpXNextEvent();
# print "EVENT $e[0] $e[1] $e[2] !!!\n";
if($e[0] == &ConfigureNotify) {
$this->resize($e[1],$e[2]);
}
$this->event($time,@e);
( run in 0.251 second using v1.01-cache-2.11-cpan-4d4bc49f3ae )