~ubuntu-branches/ubuntu/trusty/pdl/trusty-proposed

« back to all changes in this revision

Viewing changes to Graphics/TriD/TriD/MathGraph.pm

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2009-12-05 12:37:41 UTC
  • mfrom: (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091205123741-ilqkc9s4zlk71z13
Tags: 1:2.4.5+dfsg-2ubuntu1
* Merge from debian testing (LP: #492898), remaining changes:
  - debian/perldl.conf: Enabled NAN support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
package PDL::Graphics::TriD::MathGraph;
32
32
use base qw/PDL::Graphics::TriD::GObject/;
33
33
use fields qw/ArrowLen ArrowWidth/;
34
 
use PDL::Graphics::OpenGL;
 
34
 
 
35
BEGIN {
 
36
   use PDL::Config;
 
37
   if ( $PDL::Config{USE_POGL} ) {
 
38
      eval "use OpenGL $PDL::Config{POGL_VERSION} qw(:all)";
 
39
      eval 'use PDL::Graphics::OpenGL::Perl::OpenGL';
 
40
   } else {
 
41
      eval 'use PDL::Graphics::OpenGL';
 
42
   }
 
43
}
 
44
 
35
45
 
36
46
sub gdraw {
37
47
        my($this,$points) = @_;