|
strong |
List of all available sprite effects.
Enumerator | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gouraud | Gouraud shading. Enables/disables gouraud shading for sprites. // Disable shading
// or
// Enable shading, use 16th entry in the table
static void SetEffect(const SpriteEffect effect, const int32_t data=-1) Set sprite effect. Definition srl_scene2d.hpp:680 | ||||||||||||||||||||||||||||||||
ScreenDoors | Screen doors effect. Enables/disables screen door effect. // Disable effect
// or
// Enable effect
@ ScreenDoors Screen doors effect. Definition srl_scene2d.hpp:80 | ||||||||||||||||||||||||||||||||
HalfTransparency | Half transparency effect. Enables/disables half transparency effect. // Disable effect
// or
// Enable effect
@ HalfTransparency Half transparency effect. Definition srl_scene2d.hpp:94 | ||||||||||||||||||||||||||||||||
Clipping | Sprite clipping effect. Enables/disables clipping effect. // Disable flip
SRL::Scene2D::SetEffect(SRL::Scene2D::SpriteEffect::Clipping, SRL::Scene2D::ClippingEffect::NoClipping);
// or
// Enable flip
SRL::Scene2D::SetEffect(SRL::Scene2D::SpriteEffect::Clipping, SRL::Scene2D::ClippingEffect::ClipInside);
@ ClipInside Display sprite only on the outside of the clipping rectangle. Definition srl_scene2d.hpp:28 | ||||||||||||||||||||||||||||||||
Flip | Flip sprite effect. Allows to set sprite texture read direction (making sprite flipped). // Disable flipping
// or
// Enable clipping
SRL::Scene2D::SetEffect(SRL::Scene2D::SpriteEffect::Flip, SRL::Scene2D::FlipEffect::HorizontalFlip);
// Enable flip in both directions
| ||||||||||||||||||||||||||||||||
OpacityBank | VDP2 color calculation effect. Set sprites Color Calculation Ratio to one of 8 stored opacities (Banks 0-7). //Set sprite to use ratio stored in opacity bank 1:
@ OpacityBank VDP2 color calculation effect. Definition srl_scene2d.hpp:135
| ||||||||||||||||||||||||||||||||
EnableHSS | Enables textured sprite high speed shrink. When EnableHSS is specified, lines drawn with magnification of less than 1 are drawn by sampling only even or odd pixels of the original data. // Disable effect
// or
// Enable effect
@ EnableHSS Enables textured sprite high speed shrink. Definition srl_scene2d.hpp:150
| ||||||||||||||||||||||||||||||||
EnableECD | Enables end code character for textured sprites. Drawing in horizontal direction is terminated, when an end code is read twice.
Behaviour in combination with EnableHSS
// Disable effect
// or
// Enable effect
@ EnableECD Enables end code character for textured sprites. Definition srl_scene2d.hpp:181
| ||||||||||||||||||||||||||||||||
DisablePreClip | Disables pre-clipping of textured sprite. Drawing commands comprise of group of several lines, and perspective lines compris of a number of dots. Each dot is drawn based on drawing area specified by CPU. For lines completely outside or not fully inside drawing area, enabled pre-clipping can improve performance. If lines are fully within drawing area, disabling pre-clipping can improve performance. ![]() // Disable effect
// or
// Enable effect
@ DisablePreClip Disables pre-clipping of textured sprite. Definition srl_scene2d.hpp:200
|