wrapper

package
Version: v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2014 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectMapper added in v0.0.2

type ObjectMapper interface {
	// contains filtered or unexported methods
}

func NewObjectMapper added in v0.0.2

func NewObjectMapper() ObjectMapper

type WebGl

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

func CreateGles2Wrapper added in v0.0.2

func CreateGles2Wrapper(gl *webgl.Context) *WebGl

func (*WebGl) AttachShader added in v0.0.2

func (gl *WebGl) AttachShader(program uint, shader uint)

func (*WebGl) BindAttribLocation added in v0.0.2

func (gl *WebGl) BindAttribLocation(program uint, index int, name string)

func (*WebGl) BindBuffer added in v0.0.2

func (gl *WebGl) BindBuffer(target uint, buffer uint)

func (*WebGl) BufferData added in v0.0.2

func (gl *WebGl) BufferData(target uint, size int, data interface{}, usage uint)

func (*WebGl) Clear

func (gl *WebGl) Clear(mask uint)

func (*WebGl) ClearColor

func (gl *WebGl) ClearColor(red float32, green float32, blue float32, alpha float32)

func (*WebGl) CompileShader added in v0.0.2

func (gl *WebGl) CompileShader(shader uint)

func (*WebGl) CreateProgram added in v0.0.2

func (gl *WebGl) CreateProgram() uint

func (*WebGl) CreateShader added in v0.0.2

func (gl *WebGl) CreateShader(shaderType uint) uint

func (*WebGl) DeleteBuffers added in v0.0.2

func (gl *WebGl) DeleteBuffers(buffers []uint)

func (*WebGl) DeleteProgram added in v0.0.2

func (gl *WebGl) DeleteProgram(program uint)

func (*WebGl) DeleteShader added in v0.0.2

func (gl *WebGl) DeleteShader(shader uint)

func (*WebGl) DrawArrays added in v0.0.2

func (gl *WebGl) DrawArrays(mode uint, first int, count int)

func (*WebGl) Enable added in v0.0.2

func (gl *WebGl) Enable(cap uint)

func (*WebGl) EnableVertexAttribArray added in v0.0.2

func (gl *WebGl) EnableVertexAttribArray(index int)

func (*WebGl) GenBuffers added in v0.0.2

func (gl *WebGl) GenBuffers(n int) []uint

func (*WebGl) GetAttribLocation added in v0.0.2

func (gl *WebGl) GetAttribLocation(program uint, name string) int

func (*WebGl) GetError added in v0.0.2

func (gl *WebGl) GetError() uint

func (*WebGl) GetProgramParameter added in v0.0.2

func (gl *WebGl) GetProgramParameter(program uint, param uint) int

func (*WebGl) GetShaderInfoLog added in v0.0.2

func (gl *WebGl) GetShaderInfoLog(shader uint) string

func (*WebGl) GetShaderParameter added in v0.0.2

func (gl *WebGl) GetShaderParameter(shader uint, param uint) int

func (*WebGl) GetUniformLocation added in v0.0.2

func (gl *WebGl) GetUniformLocation(program uint, name string) int

func (*WebGl) LinkProgram added in v0.0.2

func (gl *WebGl) LinkProgram(program uint)

func (*WebGl) ReadPixels added in v0.0.3

func (gl *WebGl) ReadPixels(x int, y int, width int, height int, format uint, pixelType uint, pixels interface{})

func (*WebGl) ShaderSource added in v0.0.2

func (gl *WebGl) ShaderSource(shader uint, source string)

func (*WebGl) UniformMatrix4fv added in v0.0.2

func (gl *WebGl) UniformMatrix4fv(location int, transpose bool, value ...[]float32)

func (*WebGl) UseProgram added in v0.0.2

func (gl *WebGl) UseProgram(program uint)

func (*WebGl) VertexAttribOffset added in v0.0.2

func (gl *WebGl) VertexAttribOffset(index int, size int, attribType uint, normalized bool, stride int, offset int)

func (*WebGl) Viewport added in v0.0.2

func (gl *WebGl) Viewport(x int, y int, width int, height int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL