#include <wire.h>
◆ Attribute() [1/2]
Shape::Wire::Attribute::Attribute |
( |
const Vertex3fArray & | vertex, |
|
|
bool | contour, |
|
|
uint | depthResolution = 1, |
|
|
float | texelSize = 0.5f ) |
- Parameters
-
An | array of vertices to for line-segments. |
Indicate | that the vertex-array is a contour producing vertex.size() segments. |
The | resolution of the 3D-wire representing the line. A resolution of 1 will produce a quad. A resolution of 3 will produce a cuboid. |
◆ Attribute() [2/2]
Shape::Wire::Attribute::Attribute |
( |
const Vertex3fArray & | vertex, |
|
|
float | texelSize = 0.5f ) |
Best choice for drawing 2d line-primitives, as depth is not defined.
◆ contour
bool Shape::Wire::Attribute::contour |
Indicates the vertex-data forms a contour and will produce vertex.size() line segments.
◆ depthResolution
uint Shape::Wire::Attribute::depthResolution |
Defines the resolution for the 3D wire(cylinder) shape. A resolution of 4 would create a cuboid. For 2D-lines this will be zero.
◆ texelSize
float Shape::Wire::Attribute::texelSize |
For lines implemented as capsules.
◆ vertex
The documentation for this class was generated from the following file: