opengl

package
v1.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttribLocation added in v1.1.0

type AttribLocation int

type BufferType added in v1.1.0

type BufferType int

type BufferUsageType added in v1.1.0

type BufferUsageType int

type Context added in v1.1.0

type Context struct {
	Nearest            FilterType
	Linear             FilterType
	VertexShader       ShaderType
	FragmentShader     ShaderType
	ArrayBuffer        BufferType
	ElementArrayBuffer BufferType
	DynamicDraw        BufferUsageType
	StaticDraw         BufferUsageType
	// contains filtered or unexported fields
}

func NewContext added in v1.1.0

func NewContext() *Context

func (*Context) BindTexture added in v1.1.0

func (c *Context) BindTexture(t Texture)

func (*Context) BufferSubData added in v1.1.0

func (c *Context) BufferSubData(bufferType BufferType, data []float32)

func (*Context) DeleteFramebuffer added in v1.1.0

func (c *Context) DeleteFramebuffer(f Framebuffer)

func (*Context) DeleteShader added in v1.1.0

func (c *Context) DeleteShader(s Shader)

func (*Context) DeleteTexture added in v1.1.0

func (c *Context) DeleteTexture(t Texture)

func (*Context) DisableVertexAttribArray added in v1.1.0

func (c *Context) DisableVertexAttribArray(p Program, location string)

func (*Context) DrawElements added in v1.1.0

func (c *Context) DrawElements(len int)

func (*Context) EnableVertexAttribArray added in v1.1.0

func (c *Context) EnableVertexAttribArray(p Program, location string)

func (*Context) FillFramebuffer added in v1.1.0

func (c *Context) FillFramebuffer(f Framebuffer, r, g, b, a float64) error

func (*Context) Flush added in v1.1.0

func (c *Context) Flush()

func (*Context) GlslHighpSupported added in v1.1.0

func (c *Context) GlslHighpSupported() bool

func (*Context) NewBuffer added in v1.1.0

func (c *Context) NewBuffer(bufferType BufferType, v interface{}, bufferUsageType BufferUsageType)

func (*Context) NewFramebuffer added in v1.1.0

func (c *Context) NewFramebuffer(texture Texture) (Framebuffer, error)

func (*Context) NewProgram added in v1.1.0

func (c *Context) NewProgram(shaders []Shader) (Program, error)

func (*Context) NewShader added in v1.1.0

func (c *Context) NewShader(shaderType ShaderType, source string) (Shader, error)

func (*Context) NewTexture added in v1.1.0

func (c *Context) NewTexture(width, height int, pixels []uint8, filter FilterType) (Texture, error)

func (*Context) SetViewport added in v1.1.0

func (c *Context) SetViewport(f Framebuffer, width, height int) error

func (*Context) TexturePixels

func (c *Context) TexturePixels(t Texture, width, height int) ([]uint8, error)

func (*Context) UniformFloats added in v1.1.0

func (c *Context) UniformFloats(p Program, location string, v []float32)

func (*Context) UniformInt added in v1.1.0

func (c *Context) UniformInt(p Program, location string, v int)

func (*Context) UseProgram added in v1.1.0

func (c *Context) UseProgram(p Program)

func (*Context) VertexAttribPointer added in v1.1.0

func (c *Context) VertexAttribPointer(p Program, location string, stride int, v uintptr)

type FilterType added in v1.1.0

type FilterType int

type Framebuffer

type Framebuffer int

type Program added in v1.1.0

type Program int

type Shader added in v1.1.0

type Shader int

type ShaderType added in v1.1.0

type ShaderType int

type Texture

type Texture int

type UniformLocation added in v1.1.0

type UniformLocation int

Jump to

Keyboard shortcuts

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