AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
RenderBox.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx 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
22namespace agxGL
23{
24 #define AGX_NUM_RENDER_BOX_VERTICES (2 * 3 * 6)
29
34
39
40
42 {
43 #ifdef AGX_APPLE_IOS
44 typedef agx::UInt16 IndexType;
45 #else
47 #endif
48
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
78AGX_TYPE_BINDING(agxGL::RenderBoxVertices, "agxGL.RenderBoxVertices")
79AGX_TYPE_BINDING(agxGL::RenderBoxNormals, "agxGL.RenderBoxNormals")
80AGX_TYPE_BINDING(agxGL::RenderBoxOutlines, "agxGL.RenderBoxOutlines")
81
82
83#endif /* _AGXGL_RENDERBOX_H_ */
#define AGX_NUM_RENDER_BOX_VERTICES
Definition RenderBox.h:24
#define AGX_TYPE_BINDING(_Type, _Name)
Definition Type.h:179
#define AGX_FORCE_INLINE
Definition macros.h:58
This namespace contains OpenGL specific details for connecting OpenCL/OpenGL.
std::ostream & operator<<(std::ostream &output, const RenderBoxVertices &)
Definition RenderBox.h:53
uint16_t UInt16
Definition Integer.h:31
uint32_t UInt32
Definition Integer.h:32
agx::UInt32 indices[AGX_NUM_RENDER_BOX_VERTICES]
Definition RenderBox.h:37
agx::Vec3f normals[AGX_NUM_RENDER_BOX_VERTICES]
Definition RenderBox.h:32
IndexType indices[12 *2]
Definition RenderBox.h:49
agx::Vec3f vertices[AGX_NUM_RENDER_BOX_VERTICES]
Definition RenderBox.h:27