Documentation ¶
Index ¶
- Variables
- type Graphics
- func (g *Graphics) Begin()
- func (g *Graphics) Draw(dst, src driver.ImageID, indexLen int, indexOffset int, ...) error
- func (g *Graphics) DrawShader(dst driver.ImageID, shader driver.ShaderID, indexLen int, indexOffset int, ...) error
- func (g *Graphics) End()
- func (g *Graphics) FramebufferYDirection() driver.YDirection
- func (g *Graphics) HasHighPrecisionFloat() bool
- func (g *Graphics) IsGL() bool
- func (g *Graphics) MaxImageSize() int
- func (g *Graphics) NeedsRestoring() bool
- func (g *Graphics) NewImage(width, height int) (driver.Image, error)
- func (g *Graphics) NewScreenFramebufferImage(width, height int) (driver.Image, error)
- func (g *Graphics) NewShader(program *shaderir.Program) (driver.Shader, error)
- func (g *Graphics) Reset() error
- func (g *Graphics) SetThread(thread *thread.Thread)
- func (g *Graphics) SetTransparent(transparent bool)
- func (g *Graphics) SetVertices(vertices []float32, indices []uint16)
- func (g *Graphics) SetVsyncEnabled(enabled bool)
- type Image
- type Shader
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 (*Graphics) DrawShader ¶ added in v1.12.0
func (*Graphics) FramebufferYDirection ¶ added in v1.12.0
func (g *Graphics) FramebufferYDirection() driver.YDirection
func (*Graphics) HasHighPrecisionFloat ¶ added in v1.12.0
func (*Graphics) MaxImageSize ¶ added in v1.12.0
func (*Graphics) NeedsRestoring ¶ added in v1.12.0
func (*Graphics) NewScreenFramebufferImage ¶ added in v1.12.0
func (*Graphics) SetTransparent ¶ added in v1.12.0
func (*Graphics) SetVertices ¶ added in v1.12.0
func (*Graphics) SetVsyncEnabled ¶ added in v1.12.0
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
func (*Image) IsInvalidated ¶
func (*Image) ReplacePixels ¶
func (i *Image) ReplacePixels(args []*driver.ReplacePixelsArgs)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.