Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: GLFW - need a mac OSX port?

  1. #1
    Junior Member Regular Contributor
    Join Date
    Oct 2002
    Location
    San Diego, CA, USA
    Posts
    211

    GLFW - need a mac OSX port?

    If you want to have an OSX port, I may be able to assist you in this realm.

  2. #2
    Advanced Member Frequent Contributor marcus256's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    853

    Re: GLFW - need a mac OSX port?

    That would be more than welcome!!

    I think I have some MacOS X base GLFW code somewhere on my disk (probably GLFW 1.x) from a previous attempt. I think the X11 source is a much better starting point though (the win32 code is just a pure mess - not as stright forward as the X11 code). Please mail me (I think my address is in my profile, otherwise on the GLFW page).

  3. #3
    Advanced Member Frequent Contributor marcus256's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    853

    Re: GLFW - need a mac OSX port?

    Hello again!

    I have prepared a starting point for the MacOS X conversion. If you (or anyone else) wants to take a shot at it, you can download it from here: files , select GLFW_MacOSX_port.zip (hint: also download the v2.3.2 source code distro, which contains X11/Win32 source + GLFW docs)

    Hoping for some response


    [This message has been edited by marcus256 (edited 12-05-2002).]

  4. #4
    Junior Member Newbie
    Join Date
    Dec 2002
    Location
    Montreal, Quebec, Canada
    Posts
    5

    Re: GLFW - need a mac OSX port?

    Just to add some impetus: if you guys can get an OS X port working, it will make my job easier in using GLFW for my little sim project.

    I've checked all of the options for a simple, clean, C toolkit that is easy to compile using gcc (mingw for win32) and native OS X Carbon (for when I get my gorgeous mac :-), and GLFW is it.... with a Mac port!

    The good GLFW docs and current development make the decision easier, Marcus.

    As an unsophisticated >user< I can't help in the system intricacies, but I can give you feedback and other help with examples, docs (the stuggles of a newbie...).

    Thanks,

    Paul

    [This message has been edited by paulfjeld (edited 12-05-2002).]

  5. #5
    Junior Member Regular Contributor
    Join Date
    Oct 2002
    Location
    San Diego, CA, USA
    Posts
    211

    Re: GLFW - need a mac OSX port?

    OK, I will see what I can do... I have a lot of other projects going ATM, but I would like to see some form of base-system support for OSX... Lemme get your info, mebbe discuss what's up via ICQ or something... My ICQ is 27812673.

  6. #6
    Advanced Member Frequent Contributor marcus256's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    853

    Re: GLFW - need a mac OSX port?

    Hello all,

    Any help is of course welcome. Regarding actual coding & porting work, we need to have some sort of discussion regarding license, authorship, packaging etc.

    I would also like some discussion about what Mac interface to use (Cocoa?), and what OS versions to support (e.g. pthread_kill, used by glfwDestroyThread, is only supported in MacOS X 10.2 +).

    I agree that a first working prototype is more important than a completely bug-fixed full-featured implementation.

    I also think that it is very important that we focus on a clean implementation from the start, not a hack, since:

    A) Many people will be interested in using this
    B) The source code should be maintainable for others than the author(s)

    ...and believe me, turning a hack into a clean product is not easy (GLFW 1.0 really was a hack, and after a dozen of releases later, there are still remains of that sloppy code).

    I always welcome feedback on the documentation. It's not always easy for me to spot what is lacking or incomprehensive.

  7. #7
    Junior Member Newbie
    Join Date
    Dec 2002
    Location
    Montreal, Quebec, Canada
    Posts
    5

    Re: GLFW - need a mac OSX port?

    Originally posted by marcus256:

    I would also like some discussion about what Mac interface to use (Cocoa?), and what OS versions to support (e.g. pthread_kill, used by glfwDestroyThread, is only supported in MacOS X 10.2 +).
    I wonder if a Carbon port isn't best. It seems, from my >scanning< of the Apple coding docs, that it is trivial to use Carbon in Cocoa apps, including adding all the Aqua widgets. From your first cut posting, it looks like, in the .m files, there are just a few NS* wrappers around your C code. Also, why not bypass all the old Mac stuff and get into the Jaguar game? That's what Steve wants (I mean Mister Jobs...).

    Of course, you need to take those comments with this salt grain: I don't want to learn an entirely new language (and Obj-C is entirely different in syntax and philosophy despite people saying it is easy and fun), and I'll be using Jaguar only. Never liked the Mac until they got a >serious< and good OS.

    Besides, don't you want all your excellent examples to successfully compile in any environment with the flick of a simple #ifdef switch? (Okay. I'm lazy.)

    Paul

  8. #8
    Advanced Member Frequent Contributor marcus256's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    853

    Re: GLFW - need a mac OSX port?

    Hello again,

    First, the Obj-C code wasn't written by me, I don't know if Obj-C is necessary or not, but I'd like to avoid it (please read the readme.txt file in the zip-file).

    There are a few questions that need to be answered, but the most important one is:

    Which interface(s) to use?

    The following requirements should be met:

    1) It should support all GLFW functionality (e.g. the very low-level keyboard interface, the threading support etc) - see the GLFW docs
    2) Performance (e.g. using MacOS 9 interfaces is probably slow - ?)
    3) Only MacOS X has to be supported - does anyone disagree?
    4) Support C ! You should not have to use Obj-C/C++/other to code GLFW. If possible, code GLFW in C too.
    5) No changes, #ifdefs etc in GLFW apps (portability! portability!)
    6) A future version of GLFW may get some GUI functions (such as a video mode dialogue) - the MacOS X interface should support that too in a simple way (C language only - no "visual forms" etc)

    Ok, my questions as a MacOS X newbie:

    1) Can you code Cocoa from standard C? (the Apple site only mentions Obj-C)
    2) What compilers support MacOS X? Can we support them all?
    3) Is it simple to support both MacOS 9 & MacOS X? Perhaps with #ifdef's?
    4) Is this discussion better held in the Macintosh forum?

    ...I may be missing some points. If so, correct me.


    [This message has been edited by marcus256 (edited 12-08-2002).]

  9. #9
    Junior Member Newbie
    Join Date
    Dec 2002
    Location
    Montreal, Quebec, Canada
    Posts
    5

    Re: GLFW - need a mac OSX port?


    First, the Obj-C code wasn't written by me, I don't know if Obj-C is necessary or not, but I'd like to avoid it (please read the readme.txt file in the zip-file).

    Right! Good readme. Your earlier Cocoa comment wouldn't have scared me had I read it right away.


    2) What compilers support MacOS X? Can we support them all?

    Apple provided IDE (free) and CodeWarrior 8.0 (expensive). (other Java, Basic as well). As long as you support the ProjectBuilder/App Builder requirements, I think Codewarrior can handle it >and< give you Classic with simple switch-throwing.


    4) Is this discussion better held in the Macintosh forum?

    There are definitely some sharp cookies over there (unlike this sad one.)

    Paul


    [This message has been edited by paulfjeld (edited 12-08-2002).]

  10. #10
    Junior Member Newbie
    Join Date
    Dec 2002
    Location
    Montreal, Quebec, Canada
    Posts
    5

    Re: GLFW - need a mac OSX port?

    Small update: Henry Maddock's FTGL is a complete package for Linux/Win32/OS 9/OS X:
    http://homepages.paradise.net.nz/hen...ndex.html#FTGL

    His various #ifdef calls and make/project files makes it seem that the Mac port can be done fairly elegantly. (GLFW makefiles are nicer and for more compilers.)

    Paul

Posting Permissions

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