opengl

package
v1.12.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 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 Graphics added in v1.12.0

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

func Get

func Get() *Graphics

func (*Graphics) Begin added in v1.12.0

func (g *Graphics) Begin()

func (*Graphics) Draw added in v1.12.0

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

func (*Graphics) End added in v1.12.0

func (g *Graphics) End()

func (*Graphics) FramebufferYDirection added in v1.12.0

func (g *Graphics) FramebufferYDirection() driver.YDirection

func (*Graphics) HasHighPrecisionFloat added in v1.12.0

func (g *Graphics) HasHighPrecisionFloat() bool

func (*Graphics) IsGL added in v1.12.0

func (g *Graphics) IsGL() bool

func (*Graphics) MaxImageSize added in v1.12.0

func (g *Graphics) MaxImageSize() int

func (*Graphics) NeedsRestoring added in v1.12.0

func (g *Graphics) NeedsRestoring() bool

func (*Graphics) NewImage added in v1.12.0

func (g *Graphics) NewImage(width, height int) (driver.Image, error)

func (*Graphics) NewScreenFramebufferImage added in v1.12.0

func (g *Graphics) NewScreenFramebufferImage(width, height int) (driver.Image, error)

func (*Graphics) Reset added in v1.12.0

func (g *Graphics) Reset() error

Reset resets or initializes the current OpenGL state.

func (*Graphics) SetThread added in v1.12.0

func (g *Graphics) SetThread(thread *thread.Thread)

func (*Graphics) SetTransparent added in v1.12.0

func (g *Graphics) SetTransparent(transparent bool)

func (*Graphics) SetVertices added in v1.12.0

func (g *Graphics) SetVertices(vertices []float32, indices []uint16)

func (*Graphics) SetVsyncEnabled added in v1.12.0

func (g *Graphics) SetVsyncEnabled(enabled bool)

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(args []*driver.ReplacePixelsArgs)

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