| Server IP : 170.10.161.225 / Your IP : 216.73.216.78 Web Server : Apache System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : calvet ( 273824) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : ON Directory : /lib64/perl5/vendor_perl/PDL/Graphics/TriD/ |
Upload File : |
package PDL::Graphics::TriD::OOGL;
$PDL::Graphics::TriD::create_window_sub = sub {
return new PDL::Graphics::TriD::OOGL::Window;
};
package PDL::Graphics::TriD::Object;
#use PDL::Graphics::OpenGL;
BEGIN {
use PDL::Config;
if ($PDL::Config{USE_POGL}) {
eval "use OpenGL $PDL::Config{POGL_VERSION} qw(:all)";
}
}
use PDL::Graphics::OpenGL::Perl::OpenGL;
sub tooogl {
my($this) = @_;
join "\n",map { $_->togl() } (@{$this->{Objects}})
}
package PDL::Graphics::TriD::GL::Window;
use FileHandle;
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 {
}