00001 // Filename: pandadx.cxx 00002 // Created by: masad (15Jan04) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 00006 #include "pandadx9.h" 00007 00008 #include "config_dxgsg9.h" 00009 #include "wdxGraphicsPipe9.h" 00010 00011 // By including checkPandaVersion.h, we guarantee that runtime 00012 // attempts to load libpandadx9.dll will fail if they 00013 // inadvertently link with the wrong version of libdtool.dll. 00014 00015 #include "checkPandaVersion.h" 00016 00017 //////////////////////////////////////////////////////////////////// 00018 // Function: init_libpandadx 00019 // Description: Initializes the library. This must be called at 00020 // least once before any of the functions or classes in 00021 // this library can be used. Normally it will be 00022 // called by the static initializers and need not be 00023 // called explicitly, but special cases exist. 00024 //////////////////////////////////////////////////////////////////// 00025 void 00026 init_libpandadx9() { 00027 init_libdxgsg9(); 00028 } 00029 00030 //////////////////////////////////////////////////////////////////// 00031 // Function: get_pipe_type_pandadx9 00032 // Description: Returns the TypeHandle index of the recommended 00033 // graphics pipe type defined by this module. 00034 //////////////////////////////////////////////////////////////////// 00035 int 00036 get_pipe_type_pandadx9() { 00037 return wdxGraphicsPipe9::get_class_type().get_index(); 00038 }