enum SF::VertexBuffer::Usage

Overview

Usage specifiers

If data is going to be updated once or more every frame, set the usage to Stream. If data is going to be set once and used for a long time without being modified, set the usage to Static. For everything else Dynamic should be a good compromise.

Defined in:

graphics/obj.cr

Enum Members

Stream = 0

Constantly changing data

Dynamic = 1

Occasionally changing data

Static = 2

Rarely changing data

Instance Method Summary

Instance Method Detail

def dynamic? #

[View source]
def static? #

[View source]
def stream? #

[View source]