#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.
const agx::Vec2Vector & getTexCoordArray() const
void setShouldRender(bool shouldRender)
Set if the data stored should be rendered at all.
const agx::Vec4Vector & getColorArray() const
bool hasRenderMaterial() const
agx::Vec2Vector m_texCoords
agx::Vec3Vector m_normals
agxCollide::RenderMaterial * getRenderMaterial() const
void setNormalArray(const agx::Vec3Vector &normals)
Set the per vertex normals.
const agx::UInt32Vector & getIndexArray() const
void setColorArray(const agx::Vec4Vector &color)
Set and copy the per vertex colors.
const agx::Vec3Vector & getNormalArray() const
agxCollide::RenderMaterialRef m_renderMaterial
agx::UInt32 m_renderState
Mode
Specifies which type of primitive this render data represents.
const agx::Vec3Vector & getVertexArray() const
bool getShouldRender() const
void setTexCoordArray(const agx::Vec2Vector &texCoords)
Set the per vertex texture coordinates.
RenderData * clone() const
Returns an exact copy of the render data as a new object.
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...
AGX_DECLARE_POINTER_TYPES(SpaceListener)