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, srcs [graphics.ShaderImageNum]driver.ImageID, ...) error
- func (g *Graphics) End()
- func (g *Graphics) FramebufferYDirection() driver.YDirection
- func (g *Graphics) HasHighPrecisionFloat() bool
- func (g *Graphics) InvalidImageID() driver.ImageID
- 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) 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 ¶
type Graphics struct {
// contains filtered or unexported fields
}
func (*Graphics) DrawShader ¶
func (*Graphics) FramebufferYDirection ¶
func (g *Graphics) FramebufferYDirection() driver.YDirection
func (*Graphics) HasHighPrecisionFloat ¶
func (*Graphics) InvalidImageID ¶
func (*Graphics) MaxImageSize ¶
func (*Graphics) NeedsRestoring ¶
func (*Graphics) NewScreenFramebufferImage ¶
func (*Graphics) SetTransparent ¶
func (*Graphics) SetVertices ¶
func (*Graphics) SetVsyncEnabled ¶
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.