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

Author Topic: SFML 2.0 RC: Missing PostFX class  (Read 3095 times)

0 Members and 1 Guest are viewing this topic.

Gonzilla

  • Newbie
  • *
  • Posts: 21
    • View Profile
SFML 2.0 RC: Missing PostFX class
« on: May 09, 2012, 08:32:48 am »
Hey Laurent did you forget to implement the PostFx class or is it just renamed?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML 2.0 RC: Missing PostFX class
« Reply #1 on: May 09, 2012, 08:52:34 am »
sf::PostFx is dead, see sf::Shader now.
Laurent Gomila - SFML developer

Gonzilla

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: SFML 2.0 RC: Missing PostFX class
« Reply #2 on: May 09, 2012, 08:56:49 am »
Ah I see, thank you for the info :)

Gonzilla

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: SFML 2.0 RC: Missing PostFX class
« Reply #3 on: May 09, 2012, 01:50:18 pm »
I found a bug or a very strange behavior.

Code: [Select]
var shader = new Shader("data/shader/vertex.txt", "data/shader/fragment.txt");

The files vertex.txt and fragment.txt exist in the directory but they are empty. The whole application crash without an error at that line.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML 2.0 RC: Missing PostFX class
« Reply #4 on: May 09, 2012, 01:56:19 pm »
Does it crash with valid shaders too? Or is it really their emptyness that makes it crash?
Laurent Gomila - SFML developer

Gonzilla

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: SFML 2.0 RC: Missing PostFX class
« Reply #5 on: May 09, 2012, 02:10:24 pm »
Just their emptyness.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML 2.0 RC: Missing PostFX class
« Reply #6 on: May 09, 2012, 02:14:26 pm »
Interesting. I'll do some tests.
Laurent Gomila - SFML developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML 2.0 RC: Missing PostFX class
« Reply #7 on: May 09, 2012, 06:03:26 pm »
I fixed the bug, thanks for your feedback.
Laurent Gomila - SFML developer