diff options
| author | Drew DeVault <sir@cmpwn.com> | 2021-12-09 14:36:32 +0100 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2021-12-09 14:36:32 +0100 |
| commit | 07046a3b2c2d0b6a5dfaaab70e5ea71e8334df1b (patch) | |
| tree | e134285c86f6052b9c19ae7755acafa0137e215b /sdl2/surface.ha | |
| parent | Add README.md (diff) | |
| download | hare-chip8-07046a3b2c2d0b6a5dfaaab70e5ea71e8334df1b.tar.gz | |
sdl2::image: initial commit
Some additional things which were needed to make this work were also
added.
Diffstat (limited to '')
| -rw-r--r-- | sdl2/surface.ha | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sdl2/surface.ha b/sdl2/surface.ha new file mode 100644 index 0000000..7bbe850 --- /dev/null +++ b/sdl2/surface.ha @@ -0,0 +1,25 @@ +// A collection of pixels used in software blitting. +// +// This structure should be treated as read-only, except for 'pixels', which, if +// not null, contains the raw pixel data for the surface. +export type surface = struct { + flags: u32, + format: *pixelformat, + w: int, + h: int, + pitch: int, + pixels: nullable *void, + + userdata: *void, + + locked: int, + lock_data: *void, + + clip_rect: rect, + + map: *blitmap, + + refcount: int, +}; + +export type blitmap = void; |
