RenderContent.AddPersistentRenderContent Method (RhinoDoc, RenderContent)

RenderContentAddPersistentRenderContent Method (RhinoDoc, RenderContent)

Note: This API is now obsolete.

Add a material, environment or texture to the internal RDK document lists as top level content. The content must have been returned from RenderContent::MakeCopy, NewContentFromType or a similar function that returns a non-document content.

Namespace:  Rhino.Render
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
[ObsoleteAttribute("Use RhinoDoc.RenderMaterials.Attach")]
public static bool AddPersistentRenderContent(
	RhinoDoc document,
	RenderContent renderContent
)
<ObsoleteAttribute("Use RhinoDoc.RenderMaterials.Attach")>
Public Shared Function AddPersistentRenderContent ( 
	document As RhinoDoc,
	renderContent As RenderContent
) As Boolean

Parameters

document
Type: RhinoRhinoDoc
The document to attach the render content to.
renderContent
Type: Rhino.RenderRenderContent
The render content.

Return Value

Type: Boolean
true on success.
Version Information

Rhino for Windows

Obsolete (compiler warning) in 6.14
See Also