Modules/sprite fx

From MSX Game Library

Revision as of 00:00, 14 January 2024 by Aoineko (talk | contribs) (Created page with "{{MODULE |name=sprite_fx |category=Graphic |image=raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_sprttool.gif |dependency1=vdp |dependency2= |dependency...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Modules

sprite_fx

Code: sprite_fx.h

Category: Graphic

Dependencies:

Samples:

The sprite_fx module allows to apply special effects to sprite patterns: cropping, flipping, masking and rotating.

Usage

To use this module, include "sprite_fx.h" in your source code, and add "sprite_fx" to the modules list (LibModules) in your project's configuration file (project_config.js).


Samples

See module use cases in the sample programs:

Settings

Library configuration (msxgl_config.h):

// Supported sprite size
#define SPRITEFX_USE_8x8			TRUE	// Use 8x8 pixels effects
#define SPRITEFX_USE_16x16			TRUE	// Use 16x16 pixels effects

// Supported effect
#define SPRITEFX_USE_CROP			TRUE	// Use cropping effect
#define SPRITEFX_USE_FLIP			TRUE	// Use flipping effect
#define SPRITEFX_USE_MASK			TRUE	// Use masking effect
#define SPRITEFX_USE_ROTATE			TRUE	// Use rotating effect

Dependencies

Dependency on other modules:

Documentation