Panda3D
 All Classes Functions Variables Enumerations
tinyOffscreenGraphicsPipe.h
00001 // Filename: tinyOffscreenGraphicsPipe.h
00002 // Created by:  drose (09Feb09)
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 TINYOFFSCREENGRAPHICSPIPE_H
00016 #define TINYOFFSCREENGRAPHICSPIPE_H
00017 
00018 #include "pandabase.h"
00019 
00020 #include "graphicsWindow.h"
00021 #include "graphicsPipe.h"
00022 #include "tinyGraphicsStateGuardian.h"
00023 
00024 class FrameBufferProperties;
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //       Class : TinyOffscreenGraphicsPipe
00028 // Description : This graphics pipe creates offscreen buffers only,
00029 //               but is completely platform-independent.
00030 ////////////////////////////////////////////////////////////////////
00031 class EXPCL_TINYDISPLAY TinyOffscreenGraphicsPipe : public GraphicsPipe {
00032 public:
00033   TinyOffscreenGraphicsPipe();
00034   virtual ~TinyOffscreenGraphicsPipe();
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 public:
00050   static TypeHandle get_class_type() {
00051     return _type_handle;
00052   }
00053   static void init_type() {
00054     GraphicsPipe::init_type();
00055     register_type(_type_handle, "TinyOffscreenGraphicsPipe",
00056                   GraphicsPipe::get_class_type());
00057   }
00058   virtual TypeHandle get_type() const {
00059     return get_class_type();
00060   }
00061   virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00062 
00063 private:
00064   static TypeHandle _type_handle;
00065 };
00066 
00067 #include "tinyOffscreenGraphicsPipe.I"
00068 
00069 #endif
 All Classes Functions Variables Enumerations