initial commit

This commit is contained in:
asrael 2025-08-13 15:04:49 -05:00
commit c18896def0
No known key found for this signature in database
GPG key ID: 2786557804DFAE24
30 changed files with 4183 additions and 0 deletions

19
src/pxl8_blit.h Normal file
View file

@ -0,0 +1,19 @@
#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);
}
void pxl8_blit_simd_indexed(
u8* fb, u32 fb_width,
const u8* sprite, u32 atlas_width,
i32 x, i32 y, u32 w, u32 h
);
void pxl8_blit_simd_hicolor(
u32* fb, u32 fb_width,
const u32* sprite, u32 atlas_width,
i32 x, i32 y, u32 w, u32 h
);