| 1 | package SDL2::Surface { | ||
| 2 | use SDL2::Utils; | ||
| 3 | has | ||
| 4 | flags => 'uint32', | ||
| 5 | format => 'opaque', # SDL_PixelFormat* | ||
| 6 | w => 'int', | ||
| 7 | h => 'int', | ||
| 8 | pitch => 'int', | ||
| 9 | pixels => 'opaque', # void* | ||
| 10 | userdata => 'opaque', # void* | ||
| 11 | locked => 'int', | ||
| 12 | lock_data => 'opaque', # void* | ||
| 13 | clip_rect => 'SDL_Rect', | ||
| 14 | map => 'opaque', # SDL_BlitMap* | ||
| 15 | refcount => 'int'; | ||
| 16 | |||
| 17 | =encoding utf-8 | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | SDL2::Surface - A collection of pixels used in software blitting | ||
| 22 | |||
| 23 | =head1 SYNOPSIS | ||
| 24 | |||
| 25 | use SDL2 qw[:all]; | ||
| 26 | # TODO | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | SDL2::Surface should be treated as read-only, except for C<pixels>, which, if | ||
| 31 | defined, contains the raw pixel data for the surface. | ||
| 32 | |||
| 33 | =head1 AUTHOR | ||
| 34 | |||
| 35 | Sanko Robinson E<lt>sanko@cpan.orgE<gt> | ||
| 36 | |||
| 37 | =begin stopwords | ||
| 38 | |||
| 39 | blitting | ||
| 40 | |||
| 41 | =end stopwords | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | }; | ||
| 46 | 1; |