opengl

package
v1.10.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: Apache-2.0 Imports: 13 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) Begin added in v1.9.2

func (d *Driver) Begin()

func (*Driver) Draw

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

func (*Driver) End added in v1.9.2

func (d *Driver) End()

func (*Driver) Flush

func (d *Driver) Flush()

func (*Driver) HasHighPrecisionFloat added in v1.10.0

func (d *Driver) HasHighPrecisionFloat() bool

func (*Driver) IsGL

func (d *Driver) IsGL() bool

func (*Driver) MaxImageSize added in v1.10.0

func (d *Driver) MaxImageSize() int

func (*Driver) NeedsRestoring added in v1.10.0

func (d *Driver) NeedsRestoring() bool

func (*Driver) NewImage

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

func (*Driver) NewScreenFramebufferImage

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

func (*Driver) Reset

func (d *Driver) Reset() error

Reset resets or initializes the current OpenGL state.

func (*Driver) SetThread added in v1.10.0

func (d *Driver) SetThread(thread *thread.Thread)

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() driver.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