jello

package module
v0.0.0-...-e2d5c53 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2024 License: Apache-2.0, MIT Imports: 7 Imported by: 0

README

Jello is a GPU-accelerated 2D graphics renderer. It is based heavily on Vello (an experimental 2D graphics rendering engine written in Rust, with a focus on GPU compute), but isn't a direct clone.

Documentation

Index

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) Append

func (s *Scene) Append(other *Scene, transform curve.Affine)

func (*Scene) ApplyTransform

func (s *Scene) ApplyTransform(transform curve.Affine)

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

func (s *Scene) Encoding() *encoding.Encoding

Encoding returns the scene encoding. The scene mustn't be manipulated concurrently with using the encoding.

func (*Scene) Fill

func (s *Scene) Fill(
	style gfx.Fill,
	transform curve.Affine,
	brush gfx.Brush,
	brushTransform curve.Affine,
	path curve.BezPath,
)

func (*Scene) PopLayer

func (s *Scene) PopLayer()

func (*Scene) PushLayer

func (s *Scene) PushLayer(
	blend gfx.BlendMode,
	alpha float32,
	clipTransform curve.Affine,
	clip curve.BezPath,
)

func (*Scene) Reset

func (s *Scene) Reset()

func (*Scene) Stroke

func (s *Scene) Stroke(
	style curve.Stroke,
	transform curve.Affine,
	b gfx.Brush,
	brushTransform curve.Affine,
	shape curve.BezPath,
)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL