Browse Source

get_pipe_type_mesadisplay

David Rose 17 years ago
parent
commit
a471d9f92b

+ 10 - 0
panda/src/mesadisplay/config_mesadisplay.cxx

@@ -53,3 +53,13 @@ init_libmesadisplay() {
 
   Mesainit_classes();
 }
+
+////////////////////////////////////////////////////////////////////
+//     Function: get_pipe_type_mesadisplay
+//  Description: Returns the TypeHandle index of the recommended
+//               graphics pipe type defined by this module.
+////////////////////////////////////////////////////////////////////
+int
+get_pipe_type_mesadisplay() {
+  return OsMesaGraphicsPipe::get_class_type().get_index();
+}

+ 1 - 0
panda/src/mesadisplay/config_mesadisplay.h

@@ -23,5 +23,6 @@ ConfigureDecl(config_mesadisplay, EXPCL_PANDAMESA, EXPTP_PANDAMESA);
 NotifyCategoryDecl(mesadisplay, EXPCL_PANDAMESA, EXPTP_PANDAMESA);
 
 extern EXPCL_PANDAMESA void init_libmesadisplay();
+extern "C" EXPCL_PANDAMESA int get_pipe_type_mesadisplay();
 
 #endif