opengl

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear(r, g, b, a float64)

func Flush

func Flush()

func Init

func Init()

Types

type Filter

type Filter int
const (
	FilterNearest Filter = gl.NEAREST
	FilterLinear         = gl.LINEAR
)

type Framebuffer

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

func NewFramebufferFromTexture

func NewFramebufferFromTexture(texture *Texture) (*Framebuffer, error)

func NewZeroFramebuffer

func NewZeroFramebuffer(width, height int) (*Framebuffer, error)

func (*Framebuffer) Dispose

func (f *Framebuffer) Dispose()

func (*Framebuffer) ProjectionMatrix

func (f *Framebuffer) ProjectionMatrix() [4][4]float64

func (*Framebuffer) SetAsViewport

func (f *Framebuffer) SetAsViewport() error

func (*Framebuffer) Size

func (f *Framebuffer) Size() (width, height int)

type Texture

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

func NewTexture

func NewTexture(width, height int, filter Filter) (*Texture, error)

func NewTextureFromImage

func NewTextureFromImage(img image.Image, filter Filter) (*Texture, error)

func (*Texture) Dispose

func (t *Texture) Dispose()

func (*Texture) Native

func (t *Texture) Native() gl.Texture

func (*Texture) Pixels

func (t *Texture) Pixels() ([]uint8, error)

func (*Texture) Size

func (t *Texture) Size() (width, height int)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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