class Gloop::Reference(T)
- Gloop::Reference(T)
- Reference
- Object
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.crClass Method Summary
-
.create(*args)
Creates a new object of the referenced type.
-
.generate(*args)
Generates an object of the referenced type.
Instance Method Summary
-
#dup
Raises an error - OpenGL object references can't duplicated.
-
#finalize
Cleans up resources held by the object when it is no longer referenced.
-
#inspect(io)
Custom inspection indicating a reference and forwarding to object.
- #to_s(*args, **options)
- #to_s(*args, **options, &)
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.
def self.generate(*args)
#
Generates an object of the referenced type.
Passes along argument to the generate method on the object type.