Panda3D
 All Classes Functions Variables Enumerations
eggPatch.h
1 // Filename: eggPatch.h
2 // Created by: drose (27Apr12)
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 EGGPATCH_H
16 #define EGGPATCH_H
17 
18 #include "pandabase.h"
19 
20 #include "eggPrimitive.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : EggPatch
24 // Description : A single "patch", a special primitive to be rendered
25 // only with a tessellation shader.
26 ////////////////////////////////////////////////////////////////////
27 class EXPCL_PANDAEGG EggPatch : public EggPrimitive {
28 PUBLISHED:
29  INLINE EggPatch(const string &name = "");
30  INLINE EggPatch(const EggPatch &copy);
31  INLINE EggPatch &operator = (const EggPatch &copy);
32 
33  virtual void write(ostream &out, int indent_level) const;
34 
35 public:
36  static TypeHandle get_class_type() {
37  return _type_handle;
38  }
39  static void init_type() {
40  EggPrimitive::init_type();
41  register_type(_type_handle, "EggPatch",
42  EggPrimitive::get_class_type());
43  }
44  virtual TypeHandle get_type() const {
45  return get_class_type();
46  }
47  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
48 
49 private:
50  static TypeHandle _type_handle;
51 
52 };
53 
54 #include "eggPatch.I"
55 
56 #endif
A base class for any of a number of kinds of geometry primitives: polygons, point lights...
Definition: eggPrimitive.h:51
A single "patch", a special primitive to be rendered only with a tessellation shader.
Definition: eggPatch.h:27
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85