Porting a Win32/DirectX game to Mac/OpenGL

Discussion in 'Mac Programming' started by CodeMaster, Jun 25, 2006.

  1. CodeMaster
    Expand Collapse
    macrumors newbie

    Jun 25, 2006
    Hello there,

    I am an experienced programmer with many years of programming on Win32/DirectX.

    Now I have about 120,000 VC++ sloc's to port to OSX and OpenGL, plus a decent number of vertex and pixel shaders written in assembly-like code.

    Where to start? Is that even doable in a reasonable time frame?

    I am looking for book recommendations, web links and people willing to share their experience in a similar project.

    Thank you in advance.
  2. Catfish_Man
    Expand Collapse
    macrumors 68030


    Sep 13, 2001
    Portland, OR
    That'll be a huge project. My understanding is that many of the large game porting companies have ogl->dx libraries to take some of the burden.
  3. wmmk
    Expand Collapse
    macrumors 68020


    Mar 28, 2006
    The Library.
    what about that new software that ports games? it was featured in macbytes.

    EDIT: the thing is called alky, and the public beta will supposedly be out soon.
  4. slooksterPSV
    Expand Collapse
    macrumors 68030


    Apr 17, 2004
    OpenGL, to make a triangle here's how easy it is:

    glVertex3f(0.2f, 0.5f, 1.0f);
    glVertex3f(-0.2f, 0.5f, 1.0f);
    glVertex3f(-0.2f, -0.5f, 1.0f);
    glVertex3f(0.2f, -0.5f, 1.0f);

    Anyways, for colors and textures, its easy. I think DirectX is overly complicated.

    GL you can also make lists so that you just call up the list instead of plotting points again to draw the shape - very useful for inanimate objects. Anyways, as for the Assembly, wouldn't that differ from x86 and PPC (depending on the platform) --not sure about that one. The code, would take a bit, but it'd be doable within reasonable time, 120,000 lines - working on it for 5 hours a day you'd have to work on it for about 6 months + testing would be my figure (single person).

Share This Page