DrawContext.FlushBuffer
Description:
Submits geometry for rendering.
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
)
-
vertexBufferThe vertex buffer that contains vertex data.
-
Int32vertexCountThe number of vertices in the vertex buffer.
-
indexBufferThe index buffer that contains indices into the vertex buffer.
-
Int32indexCountThe number of indices in the index buffer.
-
vertexFormatThe format of the vertices in the vertex buffer.
-
effectInstanceThe effect instance to be used for drawing this piece of geometry.
-
primitiveTypeThe type of geometry primitive used in the index buffer.
-
Int32startThe first index to use for drawing.
-
Int32primitiveCountThe 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.