Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.140.188.75
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : OOGL.pm
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 {
}
© 2025 GrazzMean