Skip to content

Commit

Permalink
Deprecated IECoreGL::MeshPrimitive::MeshPrimitive( vertIds ).
Browse files Browse the repository at this point in the history
For forwards compatibility, ToGLMeshConverter should be used in preference.
  • Loading branch information
johnhaddon committed Nov 25, 2013
1 parent 1f713b2 commit 4eb504c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/IECoreGL/MeshPrimitive.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ class MeshPrimitive : public Primitive
IE_CORE_DECLARERUNTIMETYPEDEXTENSION( IECoreGL::MeshPrimitive, MeshPrimitiveTypeId, Primitive );

/// Copies of all data are taken.
/// \deprecated. This constructor was being used to allow the MeshPrimitive to support
/// Vertex and Varying primitive variables in addPrimitiveVariable(), but it lacks the
/// information necessary to support Uniform primitive variables. In the future this
/// constructor will be removed - for forwards compatibility, use a ToGLMeshConverter
/// to create MeshPrimitives.
/// \todo Replace this with a simple MeshPrimitive( numTriangles ) constructor, remove all
/// the conversions from addPrimitiveVariable, and just rely on the work the ToGLMeshConverter
/// already does.
MeshPrimitive( IECore::ConstIntVectorDataPtr vertIds );
virtual ~MeshPrimitive();

Expand Down

0 comments on commit 4eb504c

Please sign in to comment.