Panda3D
tinyWinGraphicsPipe.h
1 // Filename: tinyWinGraphicsPipe.h
2 // Created by: drose (06May08)
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 TINYWINGRAPHICSPIPE_H
16 #define TINYWINGRAPHICSPIPE_H
17 
18 #include "pandabase.h"
19 
20 #ifdef WIN32
21 
22 #include "winGraphicsPipe.h"
23 #include "tinyGraphicsStateGuardian.h"
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : TinyWinGraphicsPipe
27 // Description : This graphics pipe represents the interface for
28 // creating TinyPanda graphics windows on a
29 // Windows-based client.
30 ////////////////////////////////////////////////////////////////////
31 class EXPCL_TINYDISPLAY TinyWinGraphicsPipe : public WinGraphicsPipe {
32 public:
33  TinyWinGraphicsPipe();
34  virtual ~TinyWinGraphicsPipe();
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 
50 public:
51  static TypeHandle get_class_type() {
52  return _type_handle;
53  }
54  static void init_type() {
55  WinGraphicsPipe::init_type();
56  register_type(_type_handle, "TinyWinGraphicsPipe",
57  WinGraphicsPipe::get_class_type());
58  }
59  virtual TypeHandle get_type() const {
60  return get_class_type();
61  }
62  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
63 
64 private:
65  static TypeHandle _type_handle;
66 };
67 
68 #include "tinyWinGraphicsPipe.I"
69 
70 #endif // WIN32
71 
72 #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 is an abstract base class for wglGraphicsPipe and wdxGraphicsPipe; that is, those graphics pipes...
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...