00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
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
00028
00029
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