opengl

package
v1.10.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidTexture textureNative

Functions

This section is empty.

Types

type Driver

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

func Get

func Get() *Driver

func (*Driver) Draw

func (d *Driver) Draw(indexLen int, indexOffset int, mode graphics.CompositeMode, colorM *affine.ColorM, filter graphics.Filter, address graphics.Address) error

func (*Driver) Flush

func (d *Driver) Flush()

func (*Driver) IsGL

func (d *Driver) IsGL() bool

func (*Driver) NewImage

func (d *Driver) NewImage(width, height int) (graphicsdriver.Image, error)

func (*Driver) NewScreenFramebufferImage

func (d *Driver) NewScreenFramebufferImage(width, height int) (graphicsdriver.Image, error)

func (*Driver) Reset

func (d *Driver) Reset() error

Reset resets or initializes the current OpenGL state.

func (*Driver) SetVertices

func (d *Driver) SetVertices(vertices []float32, indices []uint16)

func (*Driver) SetVsyncEnabled

func (d *Driver) SetVsyncEnabled(enabled bool)

func (*Driver) SetWindow

func (d *Driver) SetWindow(window uintptr)

func (*Driver) VDirection

func (d *Driver) VDirection() graphicsdriver.VDirection

type Image

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

func (*Image) Dispose

func (i *Image) Dispose()

func (*Image) IsInvalidated

func (i *Image) IsInvalidated() bool

func (*Image) Pixels

func (i *Image) Pixels() ([]byte, error)

func (*Image) ReplacePixels

func (i *Image) ReplacePixels(p []byte, x, y, width, height int)

func (*Image) SetAsDestination

func (i *Image) SetAsDestination()

func (*Image) SetAsSource

func (i *Image) SetAsSource()

Directories

Path Synopsis
Package gl implements Go bindings to OpenGL.
Package gl implements Go bindings to OpenGL.

Jump to

Keyboard shortcuts

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