MCPcopy Index your code
hub / github.com/faiface/pixel / TargetPicture

Interface TargetPicture

interface.go:117–124  ·  view source on GitHub ↗

TargetPicture is a Picture generated by a Target using MakePicture method. This Picture can be drawn onto that (no other) Target together with a TargetTriangles generated by the same Target. The TargetTriangles specify where, shape and how the Picture should be drawn.

Source from the content-addressed store, hash-verified

115//
116// The TargetTriangles specify where, shape and how the Picture should be drawn.
117type TargetPicture interface {
118 Picture
119
120 // Draw draws the supplied TargetTriangles (which must be generated by the same Target as
121 // this TargetPicture) with this TargetPicture. The TargetTriangles should utilize the data
122 // from this TargetPicture in some way.
123 Draw(TargetTriangles)
124}
125
126// PictureColor specifies Picture with Color property, so that every position inside the Picture's
127// Bounds has a color.

Callers 8

DrawMethod · 0.65
DrawColorMaskMethod · 0.65
DrawMethod · 0.65
PictureDataFromImageFunction · 0.65
DrawMethod · 0.65
drawMethod · 0.65
DrawMethod · 0.65
DrawColorMaskMethod · 0.65

Implementers 10

Drawerdrawer.go
Spritesprite.go
Batchbatch.go
batchPicturebatch.go
Canvaspixelgl/canvas.go
canvasTrianglespixelgl/canvas.go
canvasPicturepixelgl/canvas.go
IMDrawimdraw/imdraw.go
Texttext/text.go

Calls

no outgoing calls

Tested by

no test coverage detected