Panda3D
|
00001 // Filename: tinyWinGraphicsPipe.h 00002 // Created by: drose (06May08) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef TINYWINGRAPHICSPIPE_H 00016 #define TINYWINGRAPHICSPIPE_H 00017 00018 #include "pandabase.h" 00019 00020 #ifdef WIN32 00021 00022 #include "winGraphicsPipe.h" 00023 #include "tinyGraphicsStateGuardian.h" 00024 00025 //////////////////////////////////////////////////////////////////// 00026 // Class : TinyWinGraphicsPipe 00027 // Description : This graphics pipe represents the interface for 00028 // creating TinyPanda graphics windows on a 00029 // Windows-based client. 00030 //////////////////////////////////////////////////////////////////// 00031 class EXPCL_TINYDISPLAY TinyWinGraphicsPipe : public WinGraphicsPipe { 00032 public: 00033 TinyWinGraphicsPipe(); 00034 virtual ~TinyWinGraphicsPipe(); 00035 00036 virtual string get_interface_name() const; 00037 static PT(GraphicsPipe) pipe_constructor(); 00038 00039 protected: 00040 virtual PT(GraphicsOutput) make_output(const string &name, 00041 const FrameBufferProperties &fb_prop, 00042 const WindowProperties &win_prop, 00043 int flags, 00044 GraphicsEngine *engine, 00045 GraphicsStateGuardian *gsg, 00046 GraphicsOutput *host, 00047 int retry, 00048 bool &precertify); 00049 00050 public: 00051 static TypeHandle get_class_type() { 00052 return _type_handle; 00053 } 00054 static void init_type() { 00055 WinGraphicsPipe::init_type(); 00056 register_type(_type_handle, "TinyWinGraphicsPipe", 00057 WinGraphicsPipe::get_class_type()); 00058 } 00059 virtual TypeHandle get_type() const { 00060 return get_class_type(); 00061 } 00062 virtual TypeHandle force_init_type() {init_type(); return get_class_type();} 00063 00064 private: 00065 static TypeHandle _type_handle; 00066 }; 00067 00068 #include "tinyWinGraphicsPipe.I" 00069 00070 #endif // WIN32 00071 00072 #endif