shader

package
v0.0.0-...-491ee29 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Vertex   = Type(gl.VERTEX_SHADER)
	Geometry = Type(gl.GEOMETRY_SHADER)
	Fragment = Type(gl.FRAGMENT_SHADER)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RShader

type RShader struct {
	// contains filtered or unexported fields
}

func NewRShader

func NewRShader(sources ...*Source) *RShader

func (*RShader) Bind

func (s *RShader) Bind()

func (*RShader) Dispose

func (s *RShader) Dispose()

func (*RShader) GetAttributeInfo

func (s *RShader) GetAttributeInfo(name string) attribute.VertexAttribute

func (*RShader) GetUniformInfo

func (s *RShader) GetUniformInfo(name string) attribute.VertexAttribute

func (*RShader) SetUniform

func (s *RShader) SetUniform(name string, value any)

func (*RShader) SetUniformArr

func (s *RShader) SetUniformArr(name string, offset int, value interface{})

func (*RShader) Unbind

func (s *RShader) Unbind()

Unbind unbinds the Shader program and restores the previous one.

type Source

type Source struct {
	// contains filtered or unexported fields
}

func NewSource

func NewSource(source string, srcType Type) *Source

func (*Source) Dispose

func (src *Source) Dispose()

type Type

type Type uint32

func (Type) Name

func (t Type) Name() string

Jump to

Keyboard shortcuts

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