class

OpenGLBindingGenerator::Generators::EnumPopulator

Inherits Reference < Object

Populates an enum repository with enum values.

Constructors

new(registry : Intermediate::Registry, enum_repository : Hash(String, Crystal::EnumBuilder), constant_repository : GroupRepository(Crystal::Constant))

Creates the populator.

Source

Instance methods

populate(enum_name, api)

Populates the repository with an enum value with the given name.

Source