Skip to content

enum SF::PrimitiveType #

Types of primitives that a SF::VertexArray can render

Points and lines have no area, therefore their thickness will always be 1 pixel, regardless the current transform and view.

Members#

Points = 0#

List of individual points

Lines = 1#

List of individual lines

LineStrip = 2#

List of connected lines, a point uses the previous point to form a line

Triangles = 3#

List of individual triangles

TriangleStrip = 4#

List of connected triangles, a point uses the two previous points to form a triangle

TriangleFan = 5#

List of connected triangles, a point uses the common center and the previous point to form a triangle

Quads = 6#

List of individual quads (deprecated, don't work with OpenGL ES)

LinesStrip = 2#

Deprecated

Use LineStrip instead

TrianglesStrip = 4#

Deprecated

Use TriangleStrip instead

TrianglesFan = 5#

Deprecated

Use TriangleFan instead

Methods#

#line_strip?#

View source

#lines?#

View source

#lines_strip?#

View source

#points?#

View source

#quads?#

View source

#triangle_fan?#

View source

#triangle_strip?#

View source

#triangles?#

View source

#triangles_fan?#

View source

#triangles_strip?#

View source