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

Matrix transformation operators for 16x16 1bpp sprite patterns. More...

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

Functions

void im_copy_SP16x16 (const SP16x16 *src, SP16x16 *dst)
 MSX Copy an 16x16 pixels 1bpp sprite pattern.
 
void im_copy_v_SP16x16 (const SP16x16 *src)
 MSX Copy an 16x16 pixels 1bpp sprite pattern.
 
void im_hflip_SP16x16 (const SP16x16 *src, SP16x16 *dst)
 MSX Flip an 16x16 pixels 1bpp sprite pattern horizontally.
 
void im_hflip_v_SP16x16 (const SP16x16 *src)
 MSX Flip an 16x16 pixels 1bpp sprite pattern horizontally.
 
void im_vflip_SP16x16 (const SP16x16 *src, SP16x16 *dst)
 MSX Flip an 16x16 pixels 1bpp sprite pattern vertically.
 
void im_vflip_v_SP16x16 (const SP16x16 *src)
 MSX Flip an 16x16 pixels 1bpp sprite pattern vertically.
 
void im_tr_SP16x16 (const SP16x16 *src, SP16x16 *dst)
 MSX Transpose an 16x16 pixels 1bpp sprite pattern around the main diagonal.
 
void im_tr_v_SP16x16 (const SP16x16 *src)
 MSX Transpose an 16x16 pixels 1bpp sprite pattern around the main diagonal.
 
void im_adtr_SP16x16 (const SP16x16 *src, SP16x16 *dst)
 MSX Transpose an 16x16 pixels 1bpp sprite pattern around the antidiagonal.
 
void im_adtr_v_SP16x16 (const SP16x16 *src)
 MSX Transpose an 16x16 pixels 1bpp sprite pattern around the antidiagonal.
 
void im_rot90_SP16x16 (const SP16x16 *src, SP16x16 *dst)
 MSX Rotate an 16x16 pixels 1bpp sprite pattern 90 degrees clockwise.
 
void im_rot90_v_SP16x16 (const SP16x16 *src)
 MSX Rotate an 16x16 pixels 1bpp sprite pattern 90 degrees clockwise.
 
void im_rot180_SP16x16 (const SP16x16 *src, SP16x16 *dst)
 MSX Rotate an 16x16 pixels 1bpp sprite pattern 180 degrees.
 
void im_rot180_v_SP16x16 (const SP16x16 *src)
 MSX Rotate an 16x16 pixels 1bpp sprite pattern 180 degrees.
 
void im_rot270_SP16x16 (const SP16x16 *src, SP16x16 *dst)
 MSX Rotate an 16x16 pixels 1bpp sprite pattern 270 degrees clockwise.
 
void im_rot270_v_SP16x16 (const SP16x16 *src)
 MSX Rotate an 16x16 pixels 1bpp sprite pattern 270 degrees clockwise.
 

Detailed Description

Matrix transformation operators for 16x16 1bpp sprite patterns.

OPERATOR ROM/RAM to RAM ROM/RAM to VRAM
COPY im_copy_SP16x16() im_copy_v_SP16x16()
FLIP HORIZONTALLY im_hflip_SP16x16() im_hflip_v_SP16x16()
FLIP VERTICALLY im_vflip_SP16x16() im_vflip_v_SP16x16()
TRANSPOSE im_tr_SP16x16() im_tr_v_SP16x16()
ROTATE 90 DEG. CLOCKWISE im_rot90_SP16x16() im_rot90_v_SP16x16()
ROTATE 180 DEG. im_rot180_SP16x16() im_rot180_v_SP16x16()
ROTATE 270 DEG. CLOCKWISE im_rot270_SP16x16() im_rot270_v_SP16x16()
ANTIDIAGONAL TRANSPOSE im_adtr_SP16x16() im_adtr_v_SP16x16()

Function Documentation

◆ im_copy_SP16x16()

void im_copy_SP16x16 ( const SP16x16 src,
SP16x16 dst 
)

MSX Copy an 16x16 pixels 1bpp sprite pattern.

Parameters
srcPointer to source image.
dstPointer to destination image.

◆ im_copy_v_SP16x16()

void im_copy_v_SP16x16 ( const SP16x16 src)

MSX Copy an 16x16 pixels 1bpp sprite pattern.

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

◆ im_hflip_SP16x16()

void im_hflip_SP16x16 ( const SP16x16 src,
SP16x16 dst 
)

MSX Flip an 16x16 pixels 1bpp sprite pattern horizontally.

Parameters
srcPointer to source image.
dstPointer to destination image.

◆ im_hflip_v_SP16x16()

void im_hflip_v_SP16x16 ( const SP16x16 src)

MSX Flip an 16x16 pixels 1bpp sprite pattern horizontally.

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

◆ im_vflip_SP16x16()

void im_vflip_SP16x16 ( const SP16x16 src,
SP16x16 dst 
)

MSX Flip an 16x16 pixels 1bpp sprite pattern vertically.

Parameters
srcPointer to source image.
dstPointer to destination image.

◆ im_vflip_v_SP16x16()

void im_vflip_v_SP16x16 ( const SP16x16 src)

MSX Flip an 16x16 pixels 1bpp sprite pattern vertically.

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

◆ im_tr_SP16x16()

void im_tr_SP16x16 ( const SP16x16 src,
SP16x16 dst 
)

MSX Transpose an 16x16 pixels 1bpp sprite pattern around the main diagonal.

Parameters
srcPointer to source image.
dstPointer to destination image.

◆ im_tr_v_SP16x16()

void im_tr_v_SP16x16 ( const SP16x16 src)

MSX Transpose an 16x16 pixels 1bpp sprite pattern around the main diagonal.

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

◆ im_adtr_SP16x16()

void im_adtr_SP16x16 ( const SP16x16 src,
SP16x16 dst 
)

MSX Transpose an 16x16 pixels 1bpp sprite pattern around the antidiagonal.

Parameters
srcPointer to source image.
dstPointer to destination image.

◆ im_adtr_v_SP16x16()

void im_adtr_v_SP16x16 ( const SP16x16 src)

MSX Transpose an 16x16 pixels 1bpp sprite pattern around the antidiagonal.

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

◆ im_rot90_SP16x16()

void im_rot90_SP16x16 ( const SP16x16 src,
SP16x16 dst 
)

MSX Rotate an 16x16 pixels 1bpp sprite pattern 90 degrees clockwise.

Parameters
srcPointer to source image.
dstPointer to destination image.

◆ im_rot90_v_SP16x16()

void im_rot90_v_SP16x16 ( const SP16x16 src)

MSX Rotate an 16x16 pixels 1bpp sprite pattern 90 degrees clockwise.

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

◆ im_rot180_SP16x16()

void im_rot180_SP16x16 ( const SP16x16 src,
SP16x16 dst 
)

MSX Rotate an 16x16 pixels 1bpp sprite pattern 180 degrees.

Parameters
srcPointer to source image.
dstPointer to destination image.

◆ im_rot180_v_SP16x16()

void im_rot180_v_SP16x16 ( const SP16x16 src)

MSX Rotate an 16x16 pixels 1bpp sprite pattern 180 degrees.

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

◆ im_rot270_SP16x16()

void im_rot270_SP16x16 ( const SP16x16 src,
SP16x16 dst 
)

MSX Rotate an 16x16 pixels 1bpp sprite pattern 270 degrees clockwise.

Parameters
srcPointer to source image.
dstPointer to destination image.

◆ im_rot270_v_SP16x16()

void im_rot270_v_SP16x16 ( const SP16x16 src)

MSX Rotate an 16x16 pixels 1bpp sprite pattern 270 degrees clockwise.

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