Documentation ¶
Rendered for windows/amd64
Index ¶
- func NewGraphics() (graphicsdriver.Graphics, error)
- type Graphics
- func (g *Graphics) Begin() error
- func (g *Graphics) DrawTriangles(dstID graphicsdriver.ImageID, ...) error
- func (g *Graphics) End(present bool) error
- func (g *Graphics) FramebufferYDirection() graphicsdriver.YDirection
- func (g *Graphics) Initialize() (err error)
- func (g *Graphics) IsDirectX() bool
- func (g *Graphics) IsGL() bool
- func (g *Graphics) MaxImageSize() int
- func (g *Graphics) NeedsClearingScreen() bool
- func (g *Graphics) NeedsRestoring() bool
- func (g *Graphics) NewImage(width, height int) (graphicsdriver.Image, error)
- func (g *Graphics) NewScreenFramebufferImage(width, height int) (graphicsdriver.Image, error)
- func (g *Graphics) NewShader(program *shaderir.Program) (graphicsdriver.Shader, error)
- func (g *Graphics) SetFullscreen(fullscreen bool)
- func (g *Graphics) SetTransparent(transparent bool)
- func (g *Graphics) SetVertices(vertices []float32, indices []uint16) (ferr error)
- func (g *Graphics) SetVsyncEnabled(enabled bool)
- func (g *Graphics) SetWindow(window uintptr)
- type Image
- type Shader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGraphics ¶ added in v2.4.0
func NewGraphics() (graphicsdriver.Graphics, error)
NewGraphics creates an implementation of graphicsdriver.Graphics for DirectX. The returned graphics value is nil iff the error is not nil.
Types ¶
type Graphics ¶
type Graphics struct {
// contains filtered or unexported fields
}
func (*Graphics) DrawTriangles ¶
func (g *Graphics) DrawTriangles(dstID graphicsdriver.ImageID, srcs [graphics.ShaderImageCount]graphicsdriver.ImageID, offsets [graphics.ShaderImageCount - 1][2]float32, shaderID graphicsdriver.ShaderID, indexLen int, indexOffset int, mode graphicsdriver.CompositeMode, colorM graphicsdriver.ColorM, filter graphicsdriver.Filter, address graphicsdriver.Address, dstRegion, srcRegion graphicsdriver.Region, uniforms [][]float32, evenOdd bool) error
func (*Graphics) FramebufferYDirection ¶
func (g *Graphics) FramebufferYDirection() graphicsdriver.YDirection
func (*Graphics) Initialize ¶
func (*Graphics) MaxImageSize ¶
func (*Graphics) NeedsClearingScreen ¶
func (*Graphics) NeedsRestoring ¶
func (*Graphics) NewImage ¶
func (g *Graphics) NewImage(width, height int) (graphicsdriver.Image, error)
func (*Graphics) NewScreenFramebufferImage ¶
func (g *Graphics) NewScreenFramebufferImage(width, height int) (graphicsdriver.Image, error)
func (*Graphics) SetFullscreen ¶
func (*Graphics) SetTransparent ¶
func (*Graphics) SetVertices ¶
func (*Graphics) SetVsyncEnabled ¶
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
func (*Image) ID ¶
func (i *Image) ID() graphicsdriver.ImageID
func (*Image) IsInvalidated ¶
func (*Image) ReadPixels ¶
func (*Image) WritePixels ¶ added in v2.4.0
func (i *Image) WritePixels(args []*graphicsdriver.WritePixelsArgs) error
Click to show internal directories.
Click to hide internal directories.