class GL::Registry::Extension

Describes an OpenGL extension.

Attributes

supported[R]

@return [Array<Symbol>] an array of supported APIs this extension is associated with.

Public Class Methods

new(node) click to toggle source

Creates a new instance of the {Extension} class.

@param node [Ox::Element] The XML element defining the instance.

Calls superclass method
# File lib/opengl/registry/extension.rb, line 16
def initialize(node)
  super(node)
  supported = node[Words::SUPPORTED]
  @supported = supported ? supported.split('|').map(&:to_sym) : Array.new
end