Results 1 to 10 of 121

Thread: G.T.A.2 Map Editor

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #33
    Ok, thanks. So im not the only one.


    Btw, i compiled simplest app using nxPascal, game loop etc in C++ Builder 6.
    I know, noone probably uses it, but i have personal version around and decided to try.
    BCB is able to compile / link Delphi units. I had to do some minor tweaks (the BCB code converter is a bit buggy) but it compiles and links fine.

    Had to replace #include "dglOpengl.hpp" with "#include <GL/gl.h>"
    But it works fine. I dont use shaders or other fancy stuff. So its enough.


    Got my nice black window

    I have plan to rewrite my editor in C++ Builder because of all the nice stuff C++ has, vectors, templates, auto_ptr etc etc.

    I got game loop to work and thats the most important thing.
    And even more important for me, all the timing code (fixed fps) etc.
    I dont know how to code it properly.

    So i have the power of nxPascal and power of C++ / STL at my hands.
    I wanted to try and do this for a long time now.

    I once tried this, but got so many errors and i gave up.
    Now i found that i actually already had some generated .hpp and .obj files from nxPascal sources and decided to try again.

    Add files carefully to C++ Builder project and compile each time and link.
    Finally it compiles everything and no unresolved things or such.

    Had to of course derive from nxPascal classes like in Delphi. But again this was also very good learning step. C++ is not new to me but alot is unknown for me. Because im more of a Delphi guy. Doing this "porting" is good exercise.

    EDIT: cube is rotating on the screen

    I can still use all the code of yours, nxTypes etc, only difference is that instead of Pascal syntax i have to use C++ syntax, all the stuff is available. GetMouseRay etc etc.
    Ofc. after you do some major updates, i have to rebuild fully.
    Last edited by hwnd; 31-07-2013 at 10:24 PM.

Tags for this Thread

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
  •