SFML community forums

General => Feature requests => Topic started by: Recruit0 on August 23, 2010, 02:15:40 am

Title: Flood fill
Post by: Recruit0 on August 23, 2010, 02:15:40 am
Topic:

http://www.sfml-dev.org/forum/viewtopic.php?t=3037

Is support for this planned for SFML 2?
Title: Flood fill
Post by: Laurent on August 23, 2010, 02:21:54 pm
No :)
Title: Flood fill
Post by: Recruit0 on August 23, 2010, 03:10:58 pm
Care to expand on that? Why not? We're provided functions to draw basic shapes yet not for flood filling?
Title: Flood fill
Post by: Spidyy on August 23, 2010, 03:20:50 pm
Because basic shapes are usefull for everyone, but flood filling will enjoy only a bunch of users like you.

Also, flood filling isn't that hard to implement yourself. You got the tools to do it. (render image, shaders or simple image traitment)
Title: Flood fill
Post by: Laurent on August 23, 2010, 06:44:13 pm
Flood filling and shapes are two totally different things. A shape is a geometric primitive that can be drawn, while flood filling is an off-screen image algorithm.

SFML doesn't provide any image algorithm, instead it provides low-level access to the pixels so that you can implement them easily.