Results 1 to 9 of 9

Thread: Box2d wrapper for Pascal?

  1. #1

    Box2d wrapper for Pascal?

    Hi all,
    I have been looking at the free open source 2d physics library http://www.box2d.org/, and was wondering if anyone has ported it to Pascal, or made a usable wrapper so one can use it under Pascal?

    I am thinking of trying to make a wrapper for it.

    I managed to compile it as a dynamic "libbox2d.a" file, and static "libbox2d.o" file, but I don't think I will be able to use any "objects" from it directly without translating it first...

    I am going to try though :-)

    cheers,
    Paul

  2. #2

    Box2d wrapper for Pascal?

    Jarrod Davis
    Technical Director @ Piradyne Games

  3. #3

    Box2d wrapper for Pascal?

    Thanks for the link Jarrod, I will take a look at the download
    cheers,
    Paul

  4. #4

    Box2d wrapper for Pascal?

    I took a brief look at the source during my biology lessons :roll:

    I think the Box2D header looks very clean and can be used without any difficulties.
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  5. #5

    Box2d wrapper for Pascal?

    =X Delphi 2005 or superior needed

    but looking at the source code, the new features delphi 2005 or superior are very insteresting for that kind of code


    ps: works with FPC ?
    From brazil (:

    Pascal pownz!

  6. #6

    Box2d wrapper for Pascal?

    Delphi 2005 or superior needed
    aaagh... maybe we have to modify the source a bit, so it's usable in Delphi 5 and up (Still lot of us use D5, D6, D7 etc)

    Why is it D2005 and up?
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  7. #7

    Box2d wrapper for Pascal?

    Quote Originally Posted by chronozphere
    Delphi 2005 or superior needed
    aaagh... maybe we have to modify the source a bit, so it's usable in Delphi 5 and up (Still lot of us use D5, D6, D7 etc)

    Why is it D2005 and up?
    From the readme file in the download:

    "Delphi 2006 or later only
    =========================

    This Delphi port only compiles on Delphi 2006 or later. One of the reasons not
    to support older Delphi versions, is that the HGE C++ code uses operator
    overloading and methods within records, which are not supported in earlier
    Delphi verions."

    It could be converted to D5, but I imagine it will be a bit of work to restructure things.

    cheers,
    Paul

  8. #8

    Box2d wrapper for Pascal?

    Quote Originally Posted by chronozphere
    Delphi 2005 or superior needed
    aaagh... maybe we have to modify the source a bit, so it's usable in Delphi 5 and up (Still lot of us use D5, D6, D7 etc)

    Why is it D2005 and up?
    Operator overloading, Static methods, Constructor on Records (this one is veryyyy usefull)

    and some more

    i will need a good work on the code (60%) to convert then to older delphi versions
    From brazil (:

    Pascal pownz!

  9. #9

    Box2d wrapper for Pascal?

    if someone make it compatible with older delphi versions, please let me know
    From brazil (:

    Pascal pownz!

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
  •