Qt 5.9 | Qt 3D | QML Types | GeometryRenderer QML Type

Qt 5.9.9 Reference Documentation

# GeometryRenderer QML Type

Encapsulates geometry rendering More...

Import Statement: | import Qt3D.Render 2.0
Since: | Qt 5.7
Instantiates: | QGeometryRenderer
Inherits: | Component3D

- List of all members, including inherited members

## Properties

- firstInstance : int
- firstVertex : int
- geometry : Geometry
- indexOffset : int
- instanceCount : int
- primitiveRestart : bool
- primitiveType : enumeration
- restartIndex : int
- vertexCount : int
- verticesPerPatch : int

## Detailed Description

A GeometryRenderer holds all the information necessary to draw a Geometry. A Geometry holds the coordinates of the geometry data - GeometryRenderer specifies how to interpret that data.

## Property Documentation

firstInstance : int

Holds the first vertex.

firstVertex : int

Holds the base instance.

geometry : Geometry

Holds the geometry.

indexOffset : int

Holds the base vertex.

instanceCount : int

Holds the instance count.

primitiveRestart : bool

Holds the primitive restart flag.

primitiveType : enumeration

Holds the primitive type.

- QGeometryRenderer.Points
- QGeometryRenderer.Lines
- QGeometryRenderer.LineLoop
- QGeometryRenderer.LineStrip
- QGeometryRenderer.Triangles
- QGeometryRenderer.TriangleStrip
- QGeometryRenderer.TriangleFan
- QGeometryRenderer.LinesAdjacency
- QGeometryRenderer.TrianglesAdjacency
- QGeometryRenderer.LineStripAdjacency
- QGeometryRenderer.TriangleStripAdjacency
- QGeometryRenderer.Patches

See also Qt3DRender::QGeometryRenderer::PrimitiveType.

restartIndex : int

Holds the restart index.

vertexCount : int

Holds the vertex count.

verticesPerPatch : int

Holds vertices per patch.