Using C ++ and Panda3D without an IDE

Example 64 - bit, WIN 7

Use SDKs v7.1 - microsoft.com/en-us/downloa … px?id=8279

Use tex editor Notepad++ - notepad-plus-plus.org/

Step 1: Panda3D are compiled from source - github.com/panda3d/panda3d at the root of disk C

Step 2: Create new folder MyGame at the root of disk C. Create a text file, name Game.cpp in folder MyGame. Open the file insert text(code C++):

#include "C:\built_x64\include\pandaFramework.h"
#include "C:\built_x64\include\pandaSystem.h"
int main(int argc, char *argv[]) {
    //open a new window framework
  PandaFramework framework;
  framework.open_framework(argc, argv);
    //set the window title to My Panda3D Window
  framework.set_window_title("My Panda3D Window");
    //open the window
  WindowFramework *window = framework.open_window();
  //here is room for your own code
    //do the main loop, equal to run() in python
  framework.main_loop();
    //close the window framework
  framework.close_framework();
  return (0);
}

Save encoding UTF8 no BOM.

Step 3: In the same directory, create bat file, name build.bat Open the file insert text:

call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /Release
cl /EHca Game.cpp ^
C:\built_x64\lib\libp3framework.lib ^
C:\built_x64\lib\libpanda.lib ^
C:\built_x64\lib\libpandaexpress.lib ^
C:\built_x64\lib\libp3dtool.lib ^
C:\built_x64\lib\libp3dtoolconfig.lib ^
C:\built_x64\lib\libp3pystub.lib  ^
C:\built_x64\lib\libp3direct.lib
pause

Save encoding UTF8 no BOM.

Step 4: Run bat.

Step 5: Result youtu.be/rZ_N_m-Uh6s

What is the difference in the Panda3D? Python or C ++ )