AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
PrimitiveRenderer.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
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>
24
25namespace agxGL
26{
27 void AGXPHYSICS_EXPORT renderSphere(const agx::AffineMatrix4x4& transform, agx::Real radius, const agx::Vec4& color = agx::Vec4(1));
28 void AGXPHYSICS_EXPORT renderBox(const agx::AffineMatrix4x4& transform, const agx::Vec3& halfLengths, const agx::Vec4& color = agx::Vec4(1));
29 void AGXPHYSICS_EXPORT renderCylinder(const agx::AffineMatrix4x4& transform, agx::Real radius, agx::Real height, const agx::Vec4& color = agx::Vec4(1));
30 void AGXPHYSICS_EXPORT renderCapsule(const agx::AffineMatrix4x4& transform, agx::Real radius, agx::Real height, 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
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.
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)
double Real
Definition Real.h:42