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

Author Topic: Easy channel swap?  (Read 1606 times)

0 Members and 2 Guests are viewing this topic.

Megatron

  • Newbie
  • *
  • Posts: 22
    • View Profile
Easy channel swap?
« on: July 27, 2011, 01:21:47 am »
I was wondering if there was a quick/easy way to swap the channels on an image/sprite.

I'm using Awesomium in my game to test some UI stuff, but for some reason when I have Awesomium push the pixel buffer to the sf::Image of my sprite, the R and B channels are swapped. This is easy to correct using shaders, or doing a pixel by pixel swap, however Id like to avoid dependency on shaders if theres another way, and the pixel by pixel swap is far to slow.

Any suggestions would be helpful

thanks

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Easy channel swap?
« Reply #1 on: July 27, 2011, 07:51:31 am »
I'm afraid there's no other way.
Laurent Gomila - SFML developer

 

anything