|
#! /usr/bin/env perl
use_ok( 'OpenGL::Sandbox' ) or BAIL_OUT;
ok( eval { OpenGL::Sandbox-> import ( 'make_context' ) ; 1 } && main->can( 'make_context' ), 'import local symbol' );
ok( eval { OpenGL::Sandbox-> import ( 'GL_TRUE' ) ; 1 } && main->can( 'GL_TRUE' ) && GL_TRUE(), 'import GL constant' );
ok( eval { OpenGL::Sandbox-> import ( 'glBindTexture' ); 1 } && main->can( 'glBindTexture' ), 'import GL function' );
SKIP: {
or diag $@;
}
SKIP: {
skip "SDL not available" , 1 unless eval { require SDLx::App; }; or diag $@;
}
SKIP: {
skip "GLFW not available" , 1 unless eval { require OpenGL::GLFW; }; or diag $@;
}
SKIP: {
skip "GLUT not available" , 1 unless eval { require OpenGL; }; or diag $@;
}
done_testing;
|