AGX Dynamics  2.35.0.1
PrimitiveRenderer.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. 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 
17 #ifndef AGXGL_PRIMITIVE_RENDERER_H
18 #define AGXGL_PRIMITIVE_RENDERER_H
19 
20 #include <agx/Math.h>
21 #include <agx/Vec4.h>
22 #include <agx/AffineMatrix4x4.h>
23 #include <agx/agxPhysics_export.h>
24 
25 namespace agxGL
26 {
28  void AGXPHYSICS_EXPORT renderBox(const agx::AffineMatrix4x4& transform, const agx::Vec3& halfLengths, const agx::Vec4& color = agx::Vec4(1));
31  void AGXPHYSICS_EXPORT renderLine(const agx::AffineMatrix4x4& transform, const agx::Vec3& start, const agx::Vec3& end, const agx::Vec4& color = agx::Vec4(1));
32  void AGXPHYSICS_EXPORT renderPlane(const agx::AffineMatrix4x4& trans, const agx::Vec3& normal, agx::Real distance, const agx::Vec4& color);
33 
34  void AGXPHYSICS_EXPORT renderSphere(agx::Real radius, const agx::Vec4& color = agx::Vec4(1));
35  void AGXPHYSICS_EXPORT renderBox(const agx::Vec3& halfLengths, const agx::Vec4& color = agx::Vec4(1));
36  void AGXPHYSICS_EXPORT renderBox(const agx::Vec3& min, const agx::Vec3& max, const agx::Vec4& color = agx::Vec4(1));
37  void AGXPHYSICS_EXPORT renderCylinder(agx::Real radius, agx::Real height, const agx::Vec4& color = agx::Vec4(1));
38  void AGXPHYSICS_EXPORT renderCapsule(agx::Real radius, agx::Real height, const agx::Vec4& color = agx::Vec4(1));
39  void AGXPHYSICS_EXPORT renderLine(const agx::Vec3& start, const agx::Vec3& end, const agx::Vec4& color = agx::Vec4(1));
40  // void AGXPHYSICS_EXPORT renderMesh(agx::Vec3Vector& vertices, agx::UInt32Vector indices, const agx::Vec4& color = agx::Vec4(1));
41 }
42 
43 #endif // #ifndef AGXGL_PRIMITIVE_RENDERER_H
#define AGXPHYSICS_EXPORT
A class holding 4 dimensional vectors and providing basic arithmetic.
Definition: Vec4Template.h:35
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
This namespace contains OpenGL specific details for connecting OpenCL/OpenGL.
void AGXPHYSICS_EXPORT renderCapsule(const agx::AffineMatrix4x4 &transform, agx::Real radius, agx::Real height, const agx::Vec4 &color=agx::Vec4(1))
void AGXPHYSICS_EXPORT renderBox(const agx::AffineMatrix4x4 &transform, const agx::Vec3 &halfLengths, const agx::Vec4 &color=agx::Vec4(1))
void AGXPHYSICS_EXPORT renderSphere(const agx::AffineMatrix4x4 &transform, agx::Real radius, const agx::Vec4 &color=agx::Vec4(1))
void AGXPHYSICS_EXPORT renderCylinder(const agx::AffineMatrix4x4 &transform, agx::Real radius, agx::Real height, const agx::Vec4 &color=agx::Vec4(1))
void AGXPHYSICS_EXPORT renderLine(const agx::AffineMatrix4x4 &transform, const agx::Vec3 &start, const agx::Vec3 &end, const agx::Vec4 &color=agx::Vec4(1))
void AGXPHYSICS_EXPORT renderPlane(const agx::AffineMatrix4x4 &trans, const agx::Vec3 &normal, agx::Real distance, const agx::Vec4 &color)
Vec3T< T > min(const Vec3T< T > &lhs, const Vec3T< T > &rhs)
Definition: Vec3Template.h:880
double Real
Definition: Real.h:42
LinearProbingHashSetImplementation< KeyT, HashT >::iterator end(LinearProbingHashSetImplementation< KeyT, HashT > &set)
Vec3T< T > max(const Vec3T< T > &lhs, const Vec3T< T > &rhs)
Definition: Vec3Template.h:874