ebiten: github.com/hajimehoshi/ebiten/internal/graphicsdriver/opengl Index | Files | Directories

package opengl

import "github.com/hajimehoshi/ebiten/internal/graphicsdriver/opengl"


Package Files

bytes.go context.go context_desktop.go driver.go framebuffer.go image.go locationcache.go program.go shader.go types.go


var InvalidTexture textureNative

type Driver Uses

type Driver struct {
    // contains filtered or unexported fields

func Get Uses

func Get() *Driver

func (*Driver) Begin Uses

func (d *Driver) Begin()

func (*Driver) Draw Uses

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

func (*Driver) End Uses

func (d *Driver) End()

func (*Driver) HasHighPrecisionFloat Uses

func (d *Driver) HasHighPrecisionFloat() bool

func (*Driver) IsGL Uses

func (d *Driver) IsGL() bool

func (*Driver) MaxImageSize Uses

func (d *Driver) MaxImageSize() int

func (*Driver) NeedsRestoring Uses

func (d *Driver) NeedsRestoring() bool

func (*Driver) NewImage Uses

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

func (*Driver) NewScreenFramebufferImage Uses

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

func (*Driver) Reset Uses

func (d *Driver) Reset() error

Reset resets or initializes the current OpenGL state.

func (*Driver) SetThread Uses

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

func (*Driver) SetTransparent Uses

func (d *Driver) SetTransparent(transparent bool)

func (*Driver) SetVertices Uses

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

func (*Driver) SetVsyncEnabled Uses

func (d *Driver) SetVsyncEnabled(enabled bool)

func (*Driver) VDirection Uses

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

type Image Uses

type Image struct {
    // contains filtered or unexported fields

func (*Image) Dispose Uses

func (i *Image) Dispose()

func (*Image) IsInvalidated Uses

func (i *Image) IsInvalidated() bool

func (*Image) Pixels Uses

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

func (*Image) ReplacePixels Uses

func (i *Image) ReplacePixels(args []*driver.ReplacePixelsArgs)

func (*Image) SetAsDestination Uses

func (i *Image) SetAsDestination()

func (*Image) SetAsSource Uses

func (i *Image) SetAsSource()


glPackage gl implements Go bindings to OpenGL.

Package opengl imports 13 packages (graph) and is imported by 4 packages. Updated 2020-01-25. Refresh now. Tools for package owners.