8 #include "config_glgsg.h" 11 #include "config_wgldisplay.h" 12 #include "wglGraphicsPipe.h" 15 #if defined(HAVE_COCOA) 16 #include "config_cocoadisplay.h" 17 #include "cocoaGraphicsPipe.h" 18 #elif defined(HAVE_CARBON) 19 #include "config_osxdisplay.h" 20 #include "osxGraphicsPipe.h" 24 #include "config_glxdisplay.h" 25 #include "glxGraphicsPipe.h" 28 #if !defined(HAVE_WGL) && !defined(HAVE_COCOA) && !defined(HAVE_CARBON) && !defined(HAVE_GLX) 29 #error One of HAVE_WGL, HAVE_COCOA, HAVE_CARBON or HAVE_GLX must be defined when compiling pandagl! 36 #include "checkPandaVersion.h" 54 #if defined(HAVE_COCOA) 55 init_libcocoadisplay();
56 #elif defined(HAVE_CARBON) 71 get_pipe_type_pandagl() {
73 return wglGraphicsPipe::get_class_type().
get_index();
76 #if defined(HAVE_COCOA) 77 return CocoaGraphicsPipe::get_class_type().
get_index();
78 #elif defined(HAVE_CARBON) 79 return osxGraphicsPipe::get_class_type().
get_index();
83 return glxGraphicsPipe::get_class_type().
get_index();
int get_index() const
Returns the integer index associated with this TypeHandle.