renderer

package
v0.0.0-...-cf57177 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Program

type Program struct {
	Id               uint32
	VertextShaderId  uint32
	FragmentShaderId uint32
}

type Renderer

type Renderer interface {
	Init(width, height int) error
	Viewport(x, y, w, h int32)
	ClearColor(r, g, b, a float32)
	CreateProgram(vshader, fshader string) (Program, error)
	ClearProgram(Program)
	LinkProgram(program uint32) error
	SetUniform(program uint32, name string, uniform shader.Uniform)
}

func OpenGLRenderer

func OpenGLRenderer() Renderer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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