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

package opengl

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

Index

Package Files

bytes.go context.go context_desktop.go context_x.go defaultshader.go framebuffer.go graphics.go image.go locationcache.go program.go shader.go types.go

Variables

var InvalidTexture textureNative

type Graphics Uses

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

func Get Uses

func Get() *Graphics

func (*Graphics) Begin Uses

func (g *Graphics) Begin()

func (*Graphics) Draw Uses

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

func (*Graphics) DrawShader Uses

func (g *Graphics) DrawShader(dst driver.ImageID, srcs [graphics.ShaderImageNum]driver.ImageID, offsets [graphics.ShaderImageNum - 1][2]float32, shader driver.ShaderID, indexLen int, indexOffset int, mode driver.CompositeMode, uniforms []interface{}) error

func (*Graphics) End Uses

func (g *Graphics) End()

func (*Graphics) FramebufferYDirection Uses

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

func (*Graphics) HasHighPrecisionFloat Uses

func (g *Graphics) HasHighPrecisionFloat() bool

func (*Graphics) InvalidImageID Uses

func (g *Graphics) InvalidImageID() driver.ImageID

func (*Graphics) IsGL Uses

func (g *Graphics) IsGL() bool

func (*Graphics) MaxImageSize Uses

func (g *Graphics) MaxImageSize() int

func (*Graphics) NeedsRestoring Uses

func (g *Graphics) NeedsRestoring() bool

func (*Graphics) NewImage Uses

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

func (*Graphics) NewScreenFramebufferImage Uses

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

func (*Graphics) NewShader Uses

func (g *Graphics) NewShader(program *shaderir.Program) (driver.Shader, error)

func (*Graphics) Reset Uses

func (g *Graphics) Reset() error

Reset resets or initializes the current OpenGL state.

func (*Graphics) SetThread Uses

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

func (*Graphics) SetTransparent Uses

func (g *Graphics) SetTransparent(transparent bool)

func (*Graphics) SetVertices Uses

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

func (*Graphics) SetVsyncEnabled Uses

func (g *Graphics) SetVsyncEnabled(enabled bool)

type Image Uses

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

func (*Image) Dispose Uses

func (i *Image) Dispose()

func (*Image) ID Uses

func (i *Image) ID() driver.ImageID

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)

type Shader Uses

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

func NewShader Uses

func NewShader(id driver.ShaderID, graphics *Graphics, program *shaderir.Program) (*Shader, error)

func (*Shader) Dispose Uses

func (s *Shader) Dispose()

func (*Shader) ID Uses

func (s *Shader) ID() driver.ShaderID

Directories

PathSynopsis
glPackage gl implements Go bindings to OpenGL.

Package opengl imports 15 packages (graph) and is imported by 3 packages. Updated 2020-08-04. Refresh now. Tools for package owners.