class Gloop::Reference(T)

Overview

Maintains a reference to an OpenGL object. Automatically deletes the object when it is longer referenced.

Forwards method calls to the underlying object.

Defined in:

gloop/reference.cr

Class Method Summary

Instance Method Summary

Macro Summary

Class Method Detail

def self.create(*args) #

Creates a new object of the referenced type.

Passes along argument to the create method on the object type.


[View source]
def self.generate(*args) #

Generates an object of the referenced type.

Passes along argument to the generate method on the object type.


[View source]

Instance Method Detail

def dup #

Raises an error - OpenGL object references can't duplicated.


[View source]
def finalize #

Cleans up resources held by the object when it is no longer referenced.


[View source]
def inspect(io) #

Custom inspection indicating a reference and forwarding to object.


[View source]
def to_s(*args, **options) #

[View source]
def to_s(*args, **options, &) #

[View source]

Macro Detail

macro method_missing(call) #

[View source]