Skip to content

Commit 1dab829

Browse files
committed
make scoped package in ::GL for Graph
1 parent c252132 commit 1dab829

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

  • lib/PDL/Graphics/TriD

lib/PDL/Graphics/TriD/GL.pm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ sub togl_setup {
3232
sub togl { $_->togl for $_[0]->contained_objects }
3333
}
3434

35-
sub PDL::Graphics::TriD::Graph::togl_setup {
35+
{ package # hide from PAUSE
36+
PDL::Graphics::TriD::Graph;
37+
sub togl_setup {
3638
my ($this) = @_;
3739
$this->{Axis}{$_}->togl_setup for grep $_ ne "Default", keys %{$this->{Axis}};
3840
while (my ($series,$h) = each %{ $this->{Data} }) {
@@ -41,7 +43,7 @@ sub PDL::Graphics::TriD::Graph::togl_setup {
4143
}
4244
}
4345
}
44-
sub PDL::Graphics::TriD::Graph::togl {
46+
sub togl {
4547
my ($this) = @_;
4648
$this->{Axis}{$_}->togl for grep $_ ne "Default", keys %{$this->{Axis}};
4749
while (my ($series,$h) = each %{ $this->{Data} }) {
@@ -50,6 +52,7 @@ sub PDL::Graphics::TriD::Graph::togl {
5052
}
5153
}
5254
}
55+
}
5356

5457
use OpenGL::Modern qw(glRotatef);
5558
use POSIX qw//;

0 commit comments

Comments
 (0)