from => 'src/Core/objects/Rect.xs',
to => 'lib/SDL/Rect.xs',
},
- libraries => [qw( SDL )],
+ libraries => [qw( SDL )],
},
Color => {
file => {
from => 'src/Core/objects/Surface.xs',
to => 'lib/SDL/Surface.xs',
},
- libraries => [qw( SDL SDL_image )],
+ libraries => [qw( SDL )],
+ },
+ Overlay => {
+ file => {
+ from => 'src/Core/objects/Overlay.xs',
+ to => 'lib/SDL/Overlay.xs',
+ },
+ libraries => [qw( SDL )],
},
PixelFormat => {
file => {
from => 'src/Core/objects/PixelFormat.xs',
to => 'lib/SDL/PixelFormat.xs',
},
- libraries => [qw( SDL SDL_image )],
+ libraries => [qw( SDL )],
},
TTF_Font => {
file => {
from => 'src/SFont.xs',
to => 'lib/SDL/SFont.xs',
},
- libraries => [qw( SDL SDL_image SDL_ttf )],
+ libraries => [qw( SDL SDL_ttf )],
},
);
=cut
SDL_Overlay *
-overlay_new(CLASS, width, height, Uint32 format, display)
+overlay_new(CLASS, width, height, format, display)
char* CLASS
int width
int height
#endif
-SDL_Overlay*
-CreateYUVOverlay ( width, height, format, display )
- int width
- int height
- Uint32 format
- SDL_Surface *display
- CODE:
- RETVAL = SDL_CreateYUVOverlay ( width, height, format, display );
- OUTPUT:
- RETVAL
-
int
LockYUVOverlay ( overlay )
SDL_Overlay *overlay
OUTPUT:
RETVAL
-void
-FreeYUVOverlay ( overlay )
- SDL_Overlay *overlay
- CODE:
- SDL_FreeYUVOverlay ( overlay );
-
Uint32
OverlayFormat ( overlay, ... )
SDL_Overlay *overlay
--- /dev/null
+#!perl
+use strict;
+use warnings;
+use Test::More tests => 2;
+use SDL;
+
+use_ok('SDL::Overlay');
+
+SDL::Init(SDL_INIT_VIDEO);
+
+my $display = SDL::SetVideoMode(640,480,32,0);
+
+my $overlay = SDL::Overlay->new( 0, 0, 0, $display);
+
+isa_ok( $overlay, 'SDL::Overlay');
+
+
+