AGX Dynamics  2.37.2.0
RenderBox.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 #ifndef AGXGL_RENDERBOX_H
17 #define AGXGL_RENDERBOX_H
18 
19 #include <agxData/Type.h>
20 #include <agx/Vec3.h>
21 
22 namespace agxGL
23 {
24  #define AGX_NUM_RENDER_BOX_VERTICES (2 * 3 * 6)
26  {
28  };
29 
31  {
33  };
34 
36  {
38  };
39 
40 
42  {
43  #ifdef AGX_APPLE_IOS
44  typedef agx::UInt16 IndexType;
45  #else
47  #endif
48 
49  IndexType indices[12 * 2];
50  };
51 
52 
53  AGX_FORCE_INLINE std::ostream& operator<<(std::ostream& output, const RenderBoxVertices& )
54  {
55  output << "{a render box}";
56  return output;
57  }
58 
59  AGX_FORCE_INLINE std::ostream& operator<<(std::ostream& output, const RenderBoxIndices& )
60  {
61  output<< "{a render box}";
62  return output;
63  }
64 
65  AGX_FORCE_INLINE std::ostream& operator<<(std::ostream& output, const RenderBoxNormals& )
66  {
67  output<< "{a render box}";
68  return output;
69  }
70 
71  AGX_FORCE_INLINE std::ostream& operator<<(std::ostream& output, const RenderBoxOutlines& )
72  {
73  output<< "{a render box outline}";
74  return output;
75  }
76 }
77 
78 AGX_TYPE_BINDING(agxGL::RenderBoxVertices, "agxGL.RenderBoxVertices")
79 AGX_TYPE_BINDING(agxGL::RenderBoxNormals, "agxGL.RenderBoxNormals")
80 AGX_TYPE_BINDING(agxGL::RenderBoxOutlines, "agxGL.RenderBoxOutlines")
81 
82 
83 #endif /* _AGXGL_RENDERBOX_H_ */
agx::Vec3f vertices[AGX_NUM_RENDER_BOX_VERTICES]
Definition: RenderBox.h:27
#define AGX_TYPE_BINDING(_Type, _Name)
Definition: Type.h:179
#define AGX_FORCE_INLINE
Definition: Object.h:59
std::ostream & operator<<(std::ostream &output, const RenderBoxVertices &)
Definition: RenderBox.h:53
#define AGX_NUM_RENDER_BOX_VERTICES
Definition: RenderBox.h:24
uint16_t UInt16
Definition: Integer.h:39
This namespace contains OpenGL specific details for connecting OpenCL/OpenGL.
uint32_t UInt32
Definition: Integer.h:40
agx::UInt32 IndexType
Definition: RenderBox.h:46