initial commit
This commit is contained in:
commit
c18896def0
30 changed files with 4183 additions and 0 deletions
19
src/pxl8_blit.h
Normal file
19
src/pxl8_blit.h
Normal 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
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue