2025-08-13 15:04:49 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "pxl8_types.h"
|
|
|
|
|
#include "pxl8_simd.h"
|
|
|
|
|
|
|
|
|
|
static inline bool pxl8_is_simd_aligned(u32 w) {
|
|
|
|
|
return w >= PXL8_SIMD_WIDTH_U8 && (w % PXL8_SIMD_WIDTH_U8 == 0);
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-28 13:10:29 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2025-08-13 15:04:49 -05:00
|
|
|
void pxl8_blit_simd_hicolor(
|
|
|
|
|
u32* fb, u32 fb_width,
|
|
|
|
|
const u32* sprite, u32 atlas_width,
|
|
|
|
|
i32 x, i32 y, u32 w, u32 h
|
|
|
|
|
);
|
2025-09-28 13:10:29 -05:00
|
|
|
void pxl8_blit_simd_indexed(
|
|
|
|
|
u8* fb, u32 fb_width,
|
|
|
|
|
const u8* sprite, u32 atlas_width,
|
|
|
|
|
i32 x, i32 y, u32 w, u32 h
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|