Documentation ¶
Index ¶
- func BeginFrame() error
- func EndFrame() error
- func MipmapLevelForDownscale(det float32) int
- func SetGraphicsDriver(graphics driver.Graphics)
- type GeoM
- type Mipmap
- func (m *Mipmap) At(x, y int) (r, g, b, a byte, err error)
- func (m *Mipmap) DrawImage(src *Mipmap, bounds image.Rectangle, geom GeoM, colorm *affine.ColorM, ...)
- func (m *Mipmap) DrawTriangles(src *Mipmap, vertices []float32, indices []uint16, colorm *affine.ColorM, ...)
- func (m *Mipmap) Dump(name string, blackbg bool) error
- func (m *Mipmap) Fill(clr color.RGBA)
- func (m *Mipmap) MarkDisposed()
- func (m *Mipmap) ReplacePixels(pix []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginFrame ¶
func BeginFrame() error
func MipmapLevelForDownscale ¶
func SetGraphicsDriver ¶
Types ¶
type Mipmap ¶
type Mipmap struct {
// contains filtered or unexported fields
}
Mipmap is a set of shareable.Image sorted by the order of mipmap level. The level 0 image is a regular image and higher-level images are used for mipmap.
func (*Mipmap) DrawTriangles ¶
func (*Mipmap) MarkDisposed ¶
func (m *Mipmap) MarkDisposed()
func (*Mipmap) ReplacePixels ¶
Click to show internal directories.
Click to hide internal directories.