I think a part of my soul died when I had to cast a const foo * to a foo * :(
[sdlgit/SDL_perl.git] / lib / SDL / OpenGL.pm
index b89c913..cf8ef33 100644 (file)
 
 package SDL::OpenGL;
 
+use strict;
+use warnings;
+use Carp;
+
 require Exporter;
 require DynaLoader;
 use vars qw(
@@ -49,6 +53,15 @@ for ( keys %SDL::OpenGL:: ) {
 
 use SDL::OpenGL::Constants;
 
+sub import {
+         my $self = shift;
+          
+           $self->export_to_level(1, @_);
+      SDL::OpenGL::Constants->export_to_level(1);
+      }
+
+
+
 1;
 
 __END__;