Panda3D
winGraphicsPipe.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file winGraphicsPipe.h
10  * @author drose
11  * @date 2002-12-20
12  */
13 
14 #ifndef WINGRAPHICSPIPE_H
15 #define WINGRAPHICSPIPE_H
16 
17 #include "pandabase.h"
18 #include "graphicsPipe.h"
19 #include "winGraphicsWindow.h"
20 
21 /**
22  * This is an abstract base class for wglGraphicsPipe and wdxGraphicsPipe;
23  * that is, those graphics pipes that are specialized for working with
24  * Microsoft Windows.
25  *
26  * There isn't much code here, since most of the fancy stuff is handled in
27  * WinGraphicsWindow. You could make a case that we don't even need a
28  * WinGraphicsPipe class at all, but it is provided mainly for completeness.
29  */
30 class EXPCL_PANDAWIN WinGraphicsPipe : public GraphicsPipe {
31 public:
33  virtual ~WinGraphicsPipe();
34 
35  virtual void lookup_cpu_data();
36 
37 public:
38  static TypeHandle get_class_type() {
39  return _type_handle;
40  }
41  static void init_type() {
42  GraphicsPipe::init_type();
43  register_type(_type_handle, "WinGraphicsPipe",
44  GraphicsPipe::get_class_type());
45  }
46  virtual TypeHandle get_type() const {
47  return get_class_type();
48  }
49  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
50 
51 private:
52  static TypeHandle _type_handle;
53 };
54 
55 #include "winGraphicsPipe.I"
56 
57 #endif
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
Definition: register_type.I:22
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An object to create GraphicsOutputs that share a particular 3-D API.
Definition: graphicsPipe.h:52
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void lookup_cpu_data()
Looks up the detailed CPU information and stores it in _display_information, if supported by the OS.
This is an abstract base class for wglGraphicsPipe and wdxGraphicsPipe; that is, those graphics pipes...
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.