From 2276dc7ad067f7af7504783239103c1abd7b4433 Mon Sep 17 00:00:00 2001 From: Vlad-Stefan Harbuz Date: Mon, 7 Feb 2022 13:08:52 +0100 Subject: refactor names from e.g. sdl2::init() to sdl2::SDL_Init() Signed-off-by: Vlad-Stefan Harbuz --- sdl2/pixels.ha | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sdl2/pixels.ha') 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, }; -- cgit v1.2.3