2027 Method
Changes 0
M

DrawContext.FlushBuffer

Description:
Submits geometry for rendering.
public static void FlushBuffer(
	VertexBuffer vertexBuffer,
	int vertexCount,
	IndexBuffer indexBuffer,
	int indexCount,
	VertexFormat vertexFormat,
	EffectInstance effectInstance,
	PrimitiveType primitiveType,
	int start,
	int primitiveCount
)
  • vertexBuffer
    The vertex buffer that contains vertex data.
  • Int32
    vertexCount
    The number of vertices in the vertex buffer.
  • indexBuffer
    The index buffer that contains indices into the vertex buffer.
  • Int32
    indexCount
    The number of indices in the index buffer.
  • vertexFormat
    The format of the vertices in the vertex buffer.
  • effectInstance
    The effect instance to be used for drawing this piece of geometry.
  • primitiveType
    The type of geometry primitive used in the index buffer.
  • Int32
    start
    The first index to use for drawing.
  • Int32
    primitiveCount
    The number of primitives to draw.
  • A change in the graphics state has made the vertex buffer vertexBuffer invalid for rendering. -or- A change in the graphics state has made the indexBuffer invalid for rendering, or indexBuffer is null and indexCount is not zero. -or- A change in the graphics state has made the vertex format vertexFormat invalid for rendering. -or- A change in the graphics state has made the effect instance effectInstance invalid for rendering. -or- The vertex format vertexFormat and the effect instance effectInstance do not match.
  • A non-optional argument was null
  • A value passed for an enumeration argument is not a member of that enumeration
  • This DrawContext is not available because Revit is not currently rendering. In general, this DrawContext must be used in the scope of the RenderScene() callback of IDirectContext3DServer.