glslgen

package module
v0.0.0-...-6b3cc89 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: Zlib Imports: 2 Imported by: 1

README

GLSLGenerator

A GLSL Shader Code Generator

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FragmentGenerator

type FragmentGenerator struct {
	Generator
	Inputs []Variable
}

func (*FragmentGenerator) AddGlobal

func (this *FragmentGenerator) AddGlobal(global Variable) *FragmentGenerator

func (*FragmentGenerator) AddGlobals

func (this *FragmentGenerator) AddGlobals(globals []Variable) *FragmentGenerator

func (*FragmentGenerator) AddInput

func (this *FragmentGenerator) AddInput(input Variable) *FragmentGenerator

func (*FragmentGenerator) AddInputs

func (this *FragmentGenerator) AddInputs(inputs []Variable) *FragmentGenerator

func (*FragmentGenerator) AddMakro

func (this *FragmentGenerator) AddMakro(makro Makro) *FragmentGenerator

func (*FragmentGenerator) AddMakros

func (this *FragmentGenerator) AddMakros(makros []Makro) *FragmentGenerator

func (*FragmentGenerator) AddModule

func (this *FragmentGenerator) AddModule(module Module) *FragmentGenerator

func (*FragmentGenerator) AddOutput

func (this *FragmentGenerator) AddOutput(output Variable) *FragmentGenerator

func (*FragmentGenerator) AddOutputs

func (this *FragmentGenerator) AddOutputs(outputs []Variable) *FragmentGenerator

func (*FragmentGenerator) SetVersion

func (this *FragmentGenerator) SetVersion(version string) *FragmentGenerator

func (*FragmentGenerator) String

func (this *FragmentGenerator) String() (str string)

type Function

type Function struct {
	Prototype string
	Body      string
}

func (*Function) PrototypeString

func (this *Function) PrototypeString() string

func (*Function) String

func (this *Function) String() string

type Generator

type Generator struct {
	Version string
	Outputs []Variable
	Makros  []Makro
	Globals []Variable
	Modules []Module
}

func (*Generator) String

func (this *Generator) String() string

type Makro

type Makro struct {
	Name  string
	Value string
}

func (*Makro) String

func (this *Makro) String() string

type Module

type Module struct {
	Structs   []Struct
	Uniforms  []Variable
	Functions []Function
	Name      string
	Body      string
}

func (*Module) CallString

func (this *Module) CallString(index uint8) string

func (*Module) FunctionPrototypesString

func (this *Module) FunctionPrototypesString() (str string)

func (*Module) FunstionsString

func (this *Module) FunstionsString() (str string)

func (*Module) PrototypeString

func (this *Module) PrototypeString(index uint8) string

func (*Module) String

func (this *Module) String(index uint8) string

func (*Module) UniformsString

func (this *Module) UniformsString(version uint16) (str string)

type Struct

type Struct struct {
	Name      string
	Variables []Variable
}

func (*Struct) String

func (this *Struct) String(version uint16) (str string)

type Variable

type Variable struct {
	Type      string
	Precision string
	Name      string
}

func (*Variable) AttributeString

func (this *Variable) AttributeString(index, version uint16) string

func (*Variable) InputString

func (this *Variable) InputString(version uint16) string

func (*Variable) OutputString

func (this *Variable) OutputString(version uint16) string

func (*Variable) String

func (this *Variable) String(version uint16) string

func (*Variable) UniformString

func (this *Variable) UniformString(version uint16) string

type VertexGenerator

type VertexGenerator struct {
	Generator
	Attributes []Variable
}

func (*VertexGenerator) AddAttribute

func (this *VertexGenerator) AddAttribute(attribute Variable) *VertexGenerator

func (*VertexGenerator) AddAttributes

func (this *VertexGenerator) AddAttributes(attributes []Variable) *VertexGenerator

func (*VertexGenerator) AddGlobal

func (this *VertexGenerator) AddGlobal(global Variable) *VertexGenerator

func (*VertexGenerator) AddGlobals

func (this *VertexGenerator) AddGlobals(globals []Variable) *VertexGenerator

func (*VertexGenerator) AddMakro

func (this *VertexGenerator) AddMakro(makro Makro) *VertexGenerator

func (*VertexGenerator) AddMakros

func (this *VertexGenerator) AddMakros(makros []Makro) *VertexGenerator

func (*VertexGenerator) AddModule

func (this *VertexGenerator) AddModule(module Module) *VertexGenerator

func (*VertexGenerator) AddOutput

func (this *VertexGenerator) AddOutput(output Variable) *VertexGenerator

func (*VertexGenerator) AddOutputs

func (this *VertexGenerator) AddOutputs(outputs []Variable) *VertexGenerator

func (*VertexGenerator) SetVersion

func (this *VertexGenerator) SetVersion(version string) *VertexGenerator

func (*VertexGenerator) String

func (this *VertexGenerator) String() (str string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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