diff options
| author | Vlad-Stefan Harbuz <vlad@vladh.net> | 2022-02-07 13:08:52 +0100 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2022-02-07 18:56:08 +0100 |
| commit | 2276dc7ad067f7af7504783239103c1abd7b4433 (patch) | |
| tree | 20f2f98f4af8b2ff0efeb3b15f1a26e09702e908 /sdl2/pixels.ha | |
| parent | correct indentation (diff) | |
| download | hare-chip8-2276dc7ad067f7af7504783239103c1abd7b4433.tar.gz | |
refactor names from e.g. sdl2::init() to sdl2::SDL_Init()
Signed-off-by: Vlad-Stefan Harbuz <vlad@vladh.net>
Diffstat (limited to 'sdl2/pixels.ha')
| -rw-r--r-- | sdl2/pixels.ha | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sdl2/pixels.ha b/sdl2/pixels.ha index 8227067..618a3c5 100644 --- a/sdl2/pixels.ha +++ b/sdl2/pixels.ha @@ -1,23 +1,23 @@ // TODO: Flesh me out -export type color = struct { +export type SDL_Color = struct { r: u8, g: u8, b: u8, a: u8, }; -export type palette = struct { +export type SDL_Palette = struct { ncolors: int, - colors: *color, + colors: *SDL_Color, version: u32, refcount: int, }; // Note: Everything in the pixel format structure is read-only. -export type pixelformat = struct { +export type SDL_PixelFormat = struct { format: u32, // TODO - palette: *palette, + palette: *SDL_Palette, bitsperpixel: u8, bytesperpixel: u8, padding: [2]u8, @@ -34,5 +34,5 @@ export type pixelformat = struct { bshift: u8, ashift: u8, refcount: int, - next: nullable *pixelformat, + next: nullable *SDL_PixelFormat, }; |
