abstract struct Gloop::Object
- Gloop::Object
- Struct
- Value
- Object
Overview
Base class for all OpenGL objects.
Objects are identified by their name (an integer).
See: https://www.khronos.org/opengl/wiki/OpenGL_Object
Included Modules
Direct Known Subclasses
Defined in:
gloop/object.crConstructors
-
.new(context : Context, name : Name)
Creates a reference to an existing object.
-
.none(context) : self
Non-existent instance to be used as a null object.
Instance Method Summary
-
#context : Context
Context the object belongs to.
-
#name : Name
Unique identifier of this object.
-
#none?
Checks if this is a null object.
-
#object_type
Enum indicating which type of object this is.
-
#to_s(io)
Constructs a string representation of the object.
-
#to_unsafe : UInt32
Retrieves a reference to the object that can be used in C bindings.
Instance methods inherited from module Gloop::Labelable
label : String
label,
label=(label : Nil)label=(label) label=, max_label_size : Int32 max_label_size, name name, object_type object_type
Constructor Detail
Creates a reference to an existing object.
Requires a reference to the content that owns the object and its name.
Instance Method Detail
Constructs a string representation of the object.
Contains the object type and its name (unique identifier).
Retrieves a reference to the object that can be used in C bindings.
This returns the object name.