#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
Class for storing rendering information for a Shape.
void setVertexArray(const agx::Vec3Vector &vertices)
Set the vertices.
void setShouldRender(bool shouldRender)
Set if the data stored should be rendered at all.
agx::Vec4Vector & getColorArray()
bool hasRenderMaterial() const
const agx::Vec3Vector & getNormalArray() const
agx::Vec2Vector & getTexCoordArray()
const agx::Vec2Vector & getTexCoordArray() const
agx::Vec3Vector & getVertexArray()
agx::Vec2Vector m_texCoords
agx::Vec3Vector m_normals
agx::UInt32Vector & getIndexArray()
void setNormalArray(const agx::Vec3Vector &normals)
Set the per vertex normals.
const agx::Vec3Vector & getVertexArray() const
RenderData * clone() const
Returns an exact copy of the render data as a new object.
void setColorArray(const agx::Vec4Vector &color)
Set and copy the per vertex colors.
agxCollide::RenderMaterialRef m_renderMaterial
const agx::UInt32Vector & getIndexArray() const
agx::UInt32 m_renderState
Mode
Specifies which type of primitive this render data represents.
agxCollide::RenderMaterial * getRenderMaterial() const
bool getShouldRender() const
void setTexCoordArray(const agx::Vec2Vector &texCoords)
Set the per vertex texture coordinates.
const agx::Vec4Vector & getColorArray() const
agx::Vec3Vector & getNormalArray()
void setIndexArray(const agx::UInt32Vector &indices, Mode mode)
Set the indices.
agx::UInt32Vector m_indices
agx::Vec3Vector m_vertices
agx::Vec4Vector m_vertexColor
void setRenderMaterial(agxCollide::RenderMaterial *renderMaterial)
Set the renderMaterial of this RenderData.
Class for storing rendering material.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Base class providing referencing counted objects.
This namespace consists of a set of classes for handling geometric intersection tests including boole...