enum SRL::Scene2D::SpriteEffect : uint8_t |
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:467 |
ScreenDoors | Screen doors effect. Enables/disables screen door effect. // Disable effect
// or
// Enable effect
|
HalfTransparency | Half transparency effect. Enables/disables half transparency effect. // Disable effect
// or
// Enable effect
@ HalfTransparency Half transparency effect. Definition srl_scene2d.hpp:231 |
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:165 |
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:
|