enum SF::PrimitiveType

Overview

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.

Defined in:

graphics/obj.cr

Enum 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

Instance Method Summary

Instance Method Detail

def line_strip? #

[View source]
def lines? #

[View source]
def lines_strip? #

[View source]
def points? #

[View source]
def quads? #

[View source]
def triangle_fan? #

[View source]
def triangle_strip? #

[View source]
def triangles? #

[View source]
def triangles_fan? #

[View source]
def triangles_strip? #

[View source]