Panda3D
pandadx9.cxx
1 // Filename: pandadx.cxx
2 // Created by: masad (15Jan04)
3 //
4 ////////////////////////////////////////////////////////////////////
5 
6 #include "pandadx9.h"
7 
8 #include "config_dxgsg9.h"
9 #include "wdxGraphicsPipe9.h"
10 
11 // By including checkPandaVersion.h, we guarantee that runtime
12 // attempts to load libpandadx9.dll will fail if they
13 // inadvertently link with the wrong version of libdtool.dll.
14 
15 #include "checkPandaVersion.h"
16 
17 ////////////////////////////////////////////////////////////////////
18 // Function: init_libpandadx
19 // Description: Initializes the library. This must be called at
20 // least once before any of the functions or classes in
21 // this library can be used. Normally it will be
22 // called by the static initializers and need not be
23 // called explicitly, but special cases exist.
24 ////////////////////////////////////////////////////////////////////
25 void
26 init_libpandadx9() {
27  init_libdxgsg9();
28 }
29 
30 ////////////////////////////////////////////////////////////////////
31 // Function: get_pipe_type_pandadx9
32 // Description: Returns the TypeHandle index of the recommended
33 // graphics pipe type defined by this module.
34 ////////////////////////////////////////////////////////////////////
35 int
36 get_pipe_type_pandadx9() {
37  return wdxGraphicsPipe9::get_class_type().get_index();
38 }
int get_index() const
Returns the integer index associated with this TypeHandle.
Definition: typeHandle.I:253