Author Topic: Overlay Hud  (Read 1966 times)

Offline Birdron

  • byte
  • *
  • Posts: 22
    • View Profile
Overlay Hud
« on: May 13, 2014, 11:10:59 pm »
Hi,
   I m rendering some images as hud, which is transparent hud. A circle with a whole in it. I m using both overlay and blit to see what is the difference. Jpct removes black pixels to make images transparent. Is there any method that loads transparent png files? Because using black pixels as transparency makes the image edges look very odd unless it is totally pixel drawing.

Thank you.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Overlay Hud
« Reply #1 on: May 13, 2014, 11:16:29 pm »
Yes. Just use the Texture-constructor that takes a boolean in addition and set it to true.

Offline Birdron

  • byte
  • *
  • Posts: 22
    • View Profile
Re: Overlay Hud
« Reply #2 on: May 13, 2014, 11:58:06 pm »
Thank you.