Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Emulating stencils?  (Read 1233 times)

0 Members and 1 Guest are viewing this topic.

teyteydragon

  • Newbie
  • *
  • Posts: 1
    • View Profile
Emulating stencils?
« on: June 10, 2015, 04:31:51 pm »
I'm trying to draw some images to the screen and I need something like a stencil -- e.g. I want to prevent some parts of the images from being drawn. (Imaging the character fading away gradually, without drawing anything on top of it)

Essentially I need this from Love2D https://love2d.org/wiki/love.graphics.setStencil

Does anyone know how to emulate this in latest SFML?

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Emulating stencils?
« Reply #1 on: June 10, 2015, 09:51:31 pm »
You may be interested in this thread.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

 

anything