Panda3D
 All Classes Functions Variables Enumerations
tinyXGraphicsPipe.h
1 // Filename: tinyXGraphicsPipe.h
2 // Created by: drose (03May08)
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 TINYXGRAPHICSPIPE_H
16 #define TINYXGRAPHICSPIPE_H
17 
18 #include "pandabase.h"
19 
20 #ifdef HAVE_X11
21 
22 #include "x11GraphicsWindow.h"
23 #include "x11GraphicsPipe.h"
24 #include "tinyGraphicsStateGuardian.h"
25 #include "lightMutex.h"
26 #include "lightReMutex.h"
27 
28 ////////////////////////////////////////////////////////////////////
29 // Class : TinyXGraphicsPipe
30 // Description : This graphics pipe represents the interface for
31 // creating TinyPanda graphics windows on an X11-based
32 // (e.g. Unix) client.
33 ////////////////////////////////////////////////////////////////////
34 class EXPCL_TINYDISPLAY TinyXGraphicsPipe : public x11GraphicsPipe {
35 public:
36  TinyXGraphicsPipe(const string &display = string());
37  virtual ~TinyXGraphicsPipe();
38 
39  virtual string get_interface_name() const;
40  static PT(GraphicsPipe) pipe_constructor();
41 
42 protected:
43  virtual PT(GraphicsOutput) make_output(const string &name,
44  const FrameBufferProperties &fb_prop,
45  const WindowProperties &win_prop,
46  int flags,
47  GraphicsEngine *engine,
49  GraphicsOutput *host,
50  int retry,
51  bool &precertify);
52 
53 public:
54  static TypeHandle get_class_type() {
55  return _type_handle;
56  }
57  static void init_type() {
58  x11GraphicsPipe::init_type();
59  register_type(_type_handle, "TinyXGraphicsPipe",
60  x11GraphicsPipe::get_class_type());
61  }
62  virtual TypeHandle get_type() const {
63  return get_class_type();
64  }
65  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
66 
67 private:
68  static TypeHandle _type_handle;
69 };
70 
71 #include "tinyXGraphicsPipe.I"
72 
73 #endif // HAVE_X11
74 
75 #endif
This graphics pipe represents the interface for creating graphics windows on an X-based client...
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...
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...