enum Gloop::Primitive

Overview

Primitive shape used for drawing vertices.

Defined in:

gloop/primitive.cr

Enum Members

Points = 0_u32
Lines = 1_u32
LineLoop = 2_u32
LineStrip = 3_u32
Triangles = 4_u32
TriangleStrip = 5_u32
TriangleFan = 6_u32
LinesAdjacency = 10_u32
LineStripAdjacency = 11_u32
TrianglesAdjacency = 12_u32
TriangleStripAdjacency = 13_u32
Patches = 14_u32
Quads = 7_u32

Instance Method Summary

Instance Method Detail

def line_loop? #

[View source]
def line_strip? #

[View source]
def line_strip_adjacency? #

[View source]
def lines? #

[View source]
def lines_adjacency? #

[View source]
def patches? #

[View source]
def points? #

[View source]
def quads? #

[View source]
def to_unsafe #

Converts to an OpenGL enum.


[View source]
def triangle_fan? #

[View source]
def triangle_strip? #

[View source]
def triangle_strip_adjacency? #

[View source]
def triangles? #

[View source]
def triangles_adjacency? #

[View source]