Panda3D
 All Classes Functions Variables Enumerations
tinyOffscreenGraphicsPipe.h
1 // Filename: tinyOffscreenGraphicsPipe.h
2 // Created by: drose (09Feb09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef TINYOFFSCREENGRAPHICSPIPE_H
16 #define TINYOFFSCREENGRAPHICSPIPE_H
17 
18 #include "pandabase.h"
19 
20 #include "graphicsWindow.h"
21 #include "graphicsPipe.h"
22 #include "tinyGraphicsStateGuardian.h"
23 
25 
26 ////////////////////////////////////////////////////////////////////
27 // Class : TinyOffscreenGraphicsPipe
28 // Description : This graphics pipe creates offscreen buffers only,
29 // but is completely platform-independent.
30 ////////////////////////////////////////////////////////////////////
31 class EXPCL_TINYDISPLAY TinyOffscreenGraphicsPipe : public GraphicsPipe {
32 public:
34  virtual ~TinyOffscreenGraphicsPipe();
35 
36  virtual string get_interface_name() const;
37  static PT(GraphicsPipe) pipe_constructor();
38 
39 protected:
40  virtual PT(GraphicsOutput) make_output(const string &name,
41  const FrameBufferProperties &fb_prop,
42  const WindowProperties &win_prop,
43  int flags,
44  GraphicsEngine *engine,
46  GraphicsOutput *host,
47  int retry,
48  bool &precertify);
49 public:
50  static TypeHandle get_class_type() {
51  return _type_handle;
52  }
53  static void init_type() {
54  GraphicsPipe::init_type();
55  register_type(_type_handle, "TinyOffscreenGraphicsPipe",
56  GraphicsPipe::get_class_type());
57  }
58  virtual TypeHandle get_type() const {
59  return get_class_type();
60  }
61  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
62 
63 private:
64  static TypeHandle _type_handle;
65 };
66 
67 #include "tinyOffscreenGraphicsPipe.I"
68 
69 #endif
A container for the various kinds of properties we might ask to have on a graphics window before we o...
An object to create GraphicsOutputs that share a particular 3-D API.
Definition: graphicsPipe.h:58
This is a base class for the various different classes that represent the result of a frame of render...
This graphics pipe creates offscreen buffers only, but is completely platform-independent.
Encapsulates all the communication with a particular instance of a given rendering backend...
This class is the main interface to controlling the render process.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before...