AGX Dynamics  2.38.0.2
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_ */
agxGL::RenderBoxNormals
Definition: RenderBox.h:30
agxGL::operator<<
std::ostream & operator<<(std::ostream &output, const RenderBoxVertices &)
Definition: RenderBox.h:53
agxGL::RenderBoxOutlines
Definition: RenderBox.h:41
AGX_NUM_RENDER_BOX_VERTICES
#define AGX_NUM_RENDER_BOX_VERTICES
Definition: RenderBox.h:24
agxGL::RenderBoxIndices
Definition: RenderBox.h:35
agxGL::RenderBoxOutlines::indices
IndexType indices[12 *2]
Definition: RenderBox.h:49
agxGL::RenderBoxNormals::normals
agx::Vec3f normals[AGX_NUM_RENDER_BOX_VERTICES]
Definition: RenderBox.h:32
agxGL::RenderBoxOutlines::IndexType
agx::UInt32 IndexType
Definition: RenderBox.h:46
agx::UInt16
uint16_t UInt16
Definition: Integer.h:31
Vec3.h
Type.h
agxGL::RenderBoxVertices::vertices
agx::Vec3f vertices[AGX_NUM_RENDER_BOX_VERTICES]
Definition: RenderBox.h:27
agxGL
This namespace contains OpenGL specific details for connecting OpenCL/OpenGL.
agxGL::RenderBoxVertices
Definition: RenderBox.h:25
AGX_TYPE_BINDING
#define AGX_TYPE_BINDING(_Type, _Name)
Definition: Type.h:179
agxGL::RenderBoxIndices::indices
agx::UInt32 indices[AGX_NUM_RENDER_BOX_VERTICES]
Definition: RenderBox.h:37
agx::Vec3T< Real32 >
agx::UInt32
uint32_t UInt32
Definition: Integer.h:32
AGX_FORCE_INLINE
#define AGX_FORCE_INLINE
Definition: macros.h:58