Results 1 to 2 of 2

Thread: ClanLib 2.40, Bug in Collision.

  1. #1

    Default ClanLib 2.40, Bug in Collision.

    Collision creation is broken (for PNG images, i'dont test other image formats).

    bool CL_OutlineProviderBitmap_Generic::is_opaque(int x, int y)
    don't works in ClanLib 2.40.
    The image memory data is stored inverted respect ClanLib 2.3X.
    The bug is caused to add support for sRGB.

    Alpha data not is byte 0, is byte 3 in the new version.




    I would be able repair CL_Collision if u like, and submit a patch.

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Yes, you are right
    The image memory data is stored inverted respect ClanLib 2.3X.
    Alpha data not is byte 0, is byte 3 in the new version
    Less than a month ago, there was a breaking change. The image byte order was reversed, to use a native format for both OpenGL and Direct3D.

    (note, it was not caused by adding support for sRGB.)

    Feel free to create a patch

Similar Threads

  1. Collision problem
    By navossoc in forum Official ClanLib SDK Forums
    Replies: 6
    Last Post: 05-30-2011, 01:25 AM
  2. Collision, where you went???
    By speeder in forum Novashell Game Creation System
    Replies: 1
    Last Post: 05-10-2010, 10:23 PM
  3. Collision detection
    By JoseMan in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 04-26-2010, 04:37 PM
  4. ClanLib-2.1 Collision Detection
    By mw007 in forum Official ClanLib SDK Forums
    Replies: 8
    Last Post: 02-28-2010, 11:38 PM
  5. Collision...
    By catch22 in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 07-17-2009, 04:07 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •