The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

$PDL::Graphics::TriD::create_window_sub = sub {
return new PDL::Graphics::TriD::OOGL::Window;
};
#use PDL::Graphics::OpenGL;
BEGIN {
if ($PDL::Config{USE_POGL}) {
eval "use OpenGL $PDL::Config{POGL_VERSION} qw(:all)";
}
}
sub tooogl {
my($this) = @_;
join "\n",map { $_->togl() } (@{$this->{Objects}})
}
sub new {my($type) = @_;
my($this) = bless {},$type;
}
sub update_list {
local $SIG{PIPE}= sub {}; # Prevent crashing if user exits the pager
my($this) = @_;
my $fh = new FileHandle("|togeomview");
my $str = join "\n",map {$_->tooogl()} (@{$this->{Objects}}) ;
print $str;
$fh->print($str);
}
sub twiddle {
}