Documentation ¶
Index ¶
- type Scene
- func (s *Scene) Append(other *Scene, transform curve.Affine)
- func (s *Scene) ApplyTransform(transform curve.Affine)
- func (s *Scene) Encoding() *encoding.Encoding
- func (s *Scene) Fill(style gfx.Fill, transform curve.Affine, brush gfx.Brush, ...)
- func (s *Scene) PopLayer()
- func (s *Scene) PushLayer(blend gfx.BlendMode, alpha float32, clipTransform curve.Affine, ...)
- func (s *Scene) Reset()
- func (s *Scene) Stroke(style curve.Stroke, transform curve.Affine, b gfx.Brush, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scene ¶
type Scene struct {
// contains filtered or unexported fields
}
func (*Scene) ApplyTransform ¶
ApplyTransform applies an affine transformation to everything that has already been drawn in the scene. It does not affect future drawing operations.
This can be used, for example, to apply HiDPI scaling.
func (*Scene) Encoding ¶
Encoding returns the scene encoding. The scene mustn't be manipulated concurrently with using the encoding.
Directories ¶
Path | Synopsis |
---|---|
engine
|
|
wgpu_engine/shaders/cpu
Package cpu provides CPU implementations of the compute shaders.
|
Package cpu provides CPU implementations of the compute shaders. |
internal
|
|
Click to show internal directories.
Click to hide internal directories.