libmsx
C library for MSX
Loading...
Searching...
No Matches
Shift operators for 16x16 1bpp sprite patterns.

Shift / Rotate (Scroll) operators for 16x16 1bpp sprite patterns. More...

+ Collaboration diagram for Shift operators for 16x16 1bpp sprite patterns.:

Functions

void im_shift_u_SP16x16 (uint8_t sft, const SP16x16 *src, SP16x16 *dst)
 MSX Shift an 16x16 pixel 1bpp sprite pattern upward.
 
void im_shift_u_v_SP16x16 (uint8_t sft, const SP16x16 *src)
 MSX Shift an 16x16 pixel 1bpp sprite pattern upward.
 
void im_shift_d_SP16x16 (uint8_t sft, const SP16x16 *src, SP16x16 *dst)
 MSX Shift an 16x16 pixel 1bpp sprite pattern downward.
 
void im_shift_d_v_SP16x16 (uint8_t sft, const SP16x16 *src)
 MSX Shift an 16x16 pixel 1bpp sprite pattern downward.
 
void im_shift_l_SP16x16 (uint8_t sft, const SP16x16 *src, SP16x16 *dst)
 MSX Shift an 16x16 pixel 1bpp sprite pattern to the left.
 
void im_shift_l_v_SP16x16 (uint8_t sft, const SP16x16 *src)
 MSX Shift an 16x16 pixel 1bpp sprite pattern to the left.
 
void im_shift_r_SP16x16 (uint8_t sft, const SP16x16 *src, SP16x16 *dst)
 MSX Shift an 16x16 pixel 1bpp sprite pattern to the right.
 
void im_shift_r_v_SP16x16 (uint8_t sft, const SP16x16 *src)
 MSX Shift an 16x16 pixel 1bpp sprite pattern to the right.
 
void im_rotate_u_SP16x16 (uint8_t sft, const SP16x16 *src, SP16x16 *dst)
 MSX Rotate (scroll) an 16x16 pixel 1bpp sprite pattern upward.
 
void im_rotate_u_v_SP16x16 (uint8_t sft, const SP16x16 *src)
 MSX Rotate (scroll) an 16x16 pixel 1bpp sprite pattern upward.
 
void im_rotate_d_SP16x16 (uint8_t sft, const SP16x16 *src, SP16x16 *dst)
 MSX Rotate (scroll) an 16x16 pixel 1bpp sprite pattern downward.
 
void im_rotate_d_v_SP16x16 (uint8_t sft, const SP16x16 *src)
 MSX Rotate (scroll) an 16x16 pixel 1bpp sprite pattern downward.
 
void im_rotate_l_SP16x16 (uint8_t sft, const SP16x16 *src, SP16x16 *dst)
 MSX Rotate (scroll) an 16x16 pixel 1bpp sprite pattern to the left.
 
void im_rotate_l_v_SP16x16 (uint8_t sft, const SP16x16 *src)
 MSX Rotate (scroll) an 16x16 pixel 1bpp sprite pattern to the left.
 
void im_rotate_r_SP16x16 (uint8_t sft, const SP16x16 *src, SP16x16 *dst)
 MSX Rotate (scroll) an 16x16 pixel 1bpp sprite pattern to the right.
 
void im_rotate_r_v_SP16x16 (uint8_t sft, const SP16x16 *src)
 MSX Rotate (scroll) an 16x16 pixel 1bpp sprite pattern to the right.
 

Detailed Description

Shift / Rotate (Scroll) operators for 16x16 1bpp sprite patterns.

OPERATOR ROM/RAM to RAM ROM/RAM to VRAM
SHIFT UPWARD im_shift_u_SP16x16() im_shift_u_v_SP16x16()
SHIFT DOWNWARD im_shift_d_SP16x16() im_shift_d_v_SP16x16()
SHIFT LEFT im_shift_l_SP16x16() im_shift_l_v_SP16x16()
SHIFT RIGHT im_shift_r_SP16x16() im_shift_r_v_SP16x16()
ROTATE UPWARD im_rotate_u_SP16x16() im_rotate_u_v_SP16x16()
ROTATE DOWNWARD im_rotate_d_SP16x16() im_rotate_d_v_SP16x16()
ROTATE LEFT im_rotate_l_SP16x16() im_rotate_l_v_SP16x16()
ROTATE RIGHT im_rotate_r_SP16x16() im_rotate_r_v_SP16x16()

Function Documentation

◆ im_shift_u_SP16x16()

void im_shift_u_SP16x16 ( uint8_t  sft,
const SP16x16 src,
SP16x16 dst 
)

MSX Shift an 16x16 pixel 1bpp sprite pattern upward.

Parameters
sftAmount of shift in pixels.
srcPointer to source image.
dstPointer to destination image.

◆ im_shift_u_v_SP16x16()

void im_shift_u_v_SP16x16 ( uint8_t  sft,
const SP16x16 src 
)

MSX Shift an 16x16 pixel 1bpp sprite pattern upward.

Parameters
sftAmount of shift in pixels.
srcPointer to source image.
Note
The destination VRAM address must be set in advance with vmem_set_write_address().

◆ im_shift_d_SP16x16()

void im_shift_d_SP16x16 ( uint8_t  sft,
const SP16x16 src,
SP16x16 dst 
)

MSX Shift an 16x16 pixel 1bpp sprite pattern downward.

Parameters
sftAmount of shift in pixels.
srcPointer to source image.
dstPointer to destination image.

◆ im_shift_d_v_SP16x16()

void im_shift_d_v_SP16x16 ( uint8_t  sft,
const SP16x16 src 
)

MSX Shift an 16x16 pixel 1bpp sprite pattern downward.

Parameters
sftAmount of shift in pixels.
srcPointer to source image.
Note
The destination VRAM address must be set in advance with vmem_set_write_address().

◆ im_shift_l_SP16x16()

void im_shift_l_SP16x16 ( uint8_t  sft,
const SP16x16 src,
SP16x16 dst 
)

MSX Shift an 16x16 pixel 1bpp sprite pattern to the left.

Parameters
sftAmount of shift in pixels.
srcPointer to source image.
dstPointer to destination image.

◆ im_shift_l_v_SP16x16()

void im_shift_l_v_SP16x16 ( uint8_t  sft,
const SP16x16 src 
)

MSX Shift an 16x16 pixel 1bpp sprite pattern to the left.

Parameters
sftAmount of shift in pixels.
srcPointer to source image.
Note
The destination VRAM address must be set in advance with vmem_set_write_address().

◆ im_shift_r_SP16x16()

void im_shift_r_SP16x16 ( uint8_t  sft,
const SP16x16 src,
SP16x16 dst 
)

MSX Shift an 16x16 pixel 1bpp sprite pattern to the right.

Parameters
sftAmount of shift in pixels.
srcPointer to source image.
dstPointer to destination image.

◆ im_shift_r_v_SP16x16()

void im_shift_r_v_SP16x16 ( uint8_t  sft,
const SP16x16 src 
)

MSX Shift an 16x16 pixel 1bpp sprite pattern to the right.

Parameters
sftAmount of shift in pixels.
srcPointer to source image.
Note
The destination VRAM address must be set in advance with vmem_set_write_address().

◆ im_rotate_u_SP16x16()

void im_rotate_u_SP16x16 ( uint8_t  sft,
const SP16x16 src,
SP16x16 dst 
)

MSX Rotate (scroll) an 16x16 pixel 1bpp sprite pattern upward.

Parameters
sftAmount of rotation in pixels.
srcPointer to source image.
dstPointer to destination image.

◆ im_rotate_u_v_SP16x16()

void im_rotate_u_v_SP16x16 ( uint8_t  sft,
const SP16x16 src 
)

MSX Rotate (scroll) an 16x16 pixel 1bpp sprite pattern upward.

Parameters
sftAmount of rotation in pixels.
srcPointer to source image.
Note
The destination VRAM address must be set in advance with vmem_set_write_address().

◆ im_rotate_d_SP16x16()

void im_rotate_d_SP16x16 ( uint8_t  sft,
const SP16x16 src,
SP16x16 dst 
)

MSX Rotate (scroll) an 16x16 pixel 1bpp sprite pattern downward.

Parameters
sftAmount of rotation in pixels.
srcPointer to source image.
dstPointer to destination image.

◆ im_rotate_d_v_SP16x16()

void im_rotate_d_v_SP16x16 ( uint8_t  sft,
const SP16x16 src 
)

MSX Rotate (scroll) an 16x16 pixel 1bpp sprite pattern downward.

Parameters
sftAmount of rotation in pixels.
srcPointer to source image.
Note
The destination VRAM address must be set in advance with vmem_set_write_address().

◆ im_rotate_l_SP16x16()

void im_rotate_l_SP16x16 ( uint8_t  sft,
const SP16x16 src,
SP16x16 dst 
)

MSX Rotate (scroll) an 16x16 pixel 1bpp sprite pattern to the left.

Parameters
sftAmount of rotation in pixels.
srcPointer to source image.
dstPointer to destination image.

◆ im_rotate_l_v_SP16x16()

void im_rotate_l_v_SP16x16 ( uint8_t  sft,
const SP16x16 src 
)

MSX Rotate (scroll) an 16x16 pixel 1bpp sprite pattern to the left.

Parameters
sftAmount of rotation in pixels.
srcPointer to source image.
Note
The destination VRAM address must be set in advance with vmem_set_write_address().

◆ im_rotate_r_SP16x16()

void im_rotate_r_SP16x16 ( uint8_t  sft,
const SP16x16 src,
SP16x16 dst 
)

MSX Rotate (scroll) an 16x16 pixel 1bpp sprite pattern to the right.

Parameters
sftAmount of rotation in pixels.
srcPointer to source image.
dstPointer to destination image.

◆ im_rotate_r_v_SP16x16()

void im_rotate_r_v_SP16x16 ( uint8_t  sft,
const SP16x16 src 
)

MSX Rotate (scroll) an 16x16 pixel 1bpp sprite pattern to the right.

Parameters
sftAmount of rotation in pixels.
srcPointer to source image.
Note
The destination VRAM address must be set in advance with vmem_set_write_address().