gen

package
v0.0.0-...-d6509ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2021 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(reg *Registry) (src []byte, err error)

Types

type Command

type Command struct {
	Name   string
	Params []Param
	Return string
}

type Enum

type Enum struct {
	Name  string
	Type  string
	Value string
}

type Extension

type Extension struct {
	Commands []string
}

type Feature

type Feature struct {
	Version  int
	Commands []string
}

type Param

type Param struct {
	Name string
	Type string
}

type Registry

type Registry struct {
	Types      map[string]Type
	Enums      []Enum
	Commands   []Command
	Features   []Feature
	Extensions []Extension
}

func Parse

func Parse(r io.Reader) (*Registry, error)

type Type

type Type int
const (
	InvalidType Type = iota
	UnsupportedType

	Int8
	Int16
	Int32
	Int64
	Intptr
	Intsize

	Uint8
	Uint16
	Uint32
	Uint64
	Uintptr
	Uintsize

	Float32
	Float64

	Bool
	Pointer

	GLhandleARB
	GLsync
	GLDEBUGPROC
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL