Panda3D Manual: The Graphics PipeThe Normally, there is one default graphics pipe created for you automatically when you import DirectStart, accessible as There are two Config.prc variables that determine the graphics pipe or pipes that will be available to an application: load-display: this variable specifies the first choice for the graphics pipe. It names the type of GraphicsPipe that should be attempted first, e.g. pandagl or pandadx8. If for some reason a GraphicsPipe of this type cannot be created, for instance because of lack of driver support, then Panda3D will fall back to the next variable: aux-display: this variable can be repeated multiple times, and should list all of the available GraphicsPipe implementations. If Panda3D is unable to open a pipe of the type named by load-display, then it will walk through the list of pipes named by aux-display, in the order they appear in the Config.prc file, and try them one at a time until one is successfully opened. Note that the name specified to each of the above variables, e.g. pandagl, actually names a Windows DLL or Unix shared-library file. Panda3D will put "lib" in front of the name and ".dll" or ".so" (according to the operating system) after the name, and then attempts to import that library. This means that "load-display pandagl" really means to try to import the file "libpandagl.dll". The various display DLL's are written so that when they are successfully imported, they will register support for the kind of GraphicsPipe they implement. You can create additional graphics pipes, for instance to provide an in-game interface to switch between OpenGL and DirectX rendering. The easiest way to do this is to call When you walk through the GraphicsPipes in base.pipeList, you can call the following interface methods on each one:
© Carnegie Mellon University 2010 |