RenderPrimitiveType

ceramic.RenderPrimitiveType (Abstract)

Defines the primitive types used for rendering geometry.

This enum specifies how vertices should be interpreted when drawing:

  • TRIANGLE: Groups vertices into triangles (3 vertices per primitive)
  • LINE: Groups vertices into lines (2 vertices per primitive)

The primitive type affects how the GPU interprets the vertex and index buffers during rendering. It determines the basic shape that will be drawn from the provided vertex data.

// Set primitive type for triangle-based rendering (default)
renderer.setPrimitiveType(TRIANGLE);

// Switch to line rendering for wireframes or outlines
renderer.setPrimitiveType(LINE);
See: Renderer For usage in the rendering pipeline, Mesh For geometry that uses these primitive types

Type Conversions

From:

  • [Int](/api-docs/clay-native/Int/)

To:

  • [Int](/api-docs/clay-native/Int/)

Metadata

Name Parameters
:enum -