class

OpenGLBindingGenerator::RegistryDocumentProcessor

Inherits Reference < Object

Processes a registry document and pulls information out of it. It extracts types, enum groups, enums, commands, features, and extensions from a registry document and adds them to an Intermediate::Registry.

The XML document should look something like:

<registry>
  <!-- C Types -->
  <types>
    <type />
  </types>

  <!-- Enum Groups -->
  <groups>
    <group>
    </group>
  </groups>

  <!-- Enum Values (multiple nodes) -->
  <enums>
    <enum />
  </enums>

  <!-- Commands -->
  <commands>
    <command>
    </command>
  </commands>

  <!-- Features by API and Version (multiple nodes) -->
  <feature>
  </feature>

  <!-- Extenion Commands -->
  <extensions>
    <extension>
    </extension>
  </extensions>
</registry>

This class processes just the nodes immediately under <registry> and leaves the data within those nodes to other processors.

Constructors

new(document : RegistryDocument)

Creates the processor. The document should be the registry document to process.

Source

Instance methods

process

Processes the document and adds information from it to a registry. The populated registry is returned.

Source