Documentation
¶
Index ¶
- type Canvas
- func (c *Canvas) Begin()
- func (c *Canvas) Clip(bounds ui.Bounds)
- func (c *Canvas) Contour() ui.Contour
- func (c *Canvas) DrawSurface(surface ui.Surface)
- func (c *Canvas) End()
- func (c *Canvas) Pop()
- func (c *Canvas) Push()
- func (c *Canvas) Resize(width, height int)
- func (c *Canvas) ResizeFramebuffer(width, height int)
- func (c *Canvas) Shape() ui.Shape
- func (c *Canvas) Text() ui.Text
- func (c *Canvas) Translate(delta ui.Position)
- type Contour
- func (c *Contour) CloseLoop()
- func (c *Contour) CubeTo(control1, control2, position sprec.Vec2, stroke Stroke)
- func (c *Contour) Init()
- func (c *Contour) LineTo(position sprec.Vec2, stroke Stroke)
- func (c *Contour) MoveTo(position sprec.Vec2, stroke Stroke)
- func (c *Contour) QuadTo(control, position sprec.Vec2, stroke Stroke)
- type ContourMesh
- type ContourPoint
- type ContourVertex
- type Fill
- type Font
- type FontFactory
- type Image
- type Layer
- type Material
- type Paragraph
- type Renderer
- func (r *Renderer) Begin(target Target)
- func (r *Renderer) BeginContour() *Contour
- func (r *Renderer) BeginShape(fill Fill) *Shape
- func (r *Renderer) BeginText(typography Typography) *Text
- func (r *Renderer) ClipBounds() (left, right, top, bottom float32)
- func (r *Renderer) DrawSurface(surface Surface)
- func (r *Renderer) End()
- func (r *Renderer) EndContour(contour *Contour)
- func (r *Renderer) EndShape(shape *Shape)
- func (r *Renderer) EndText(text *Text)
- func (r *Renderer) Free()
- func (r *Renderer) Init()
- func (r *Renderer) SetClipBounds(left, right, top, bottom float32)
- func (r *Renderer) SetTextureTransform(textureTransform sprec.Mat4)
- func (r *Renderer) SetTransform(transform sprec.Mat4)
- func (r *Renderer) TextureTransform() sprec.Mat4
- func (r *Renderer) Transform() sprec.Mat4
- type Shape
- type ShapeMesh
- type ShapePoint
- type ShapeVertex
- type StencilMode
- type Stroke
- type SubContour
- type SubMesh
- type SubShape
- type Surface
- type Target
- type Text
- type TextMesh
- type TextVertex
- type Typography
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Canvas ¶
type Canvas struct {
// contains filtered or unexported fields
}
func (*Canvas) DrawSurface ¶ added in v0.3.0
func (*Canvas) ResizeFramebuffer ¶
type Contour ¶ added in v0.3.0
type Contour struct {
// contains filtered or unexported fields
}
type ContourMesh ¶ added in v0.3.0
type ContourMesh struct {
// contains filtered or unexported fields
}
func (*ContourMesh) Allocate ¶ added in v0.3.0
func (m *ContourMesh) Allocate()
func (*ContourMesh) Append ¶ added in v0.3.0
func (m *ContourMesh) Append(vertex ContourVertex)
func (*ContourMesh) Offset ¶ added in v0.3.0
func (m *ContourMesh) Offset() int
func (*ContourMesh) Release ¶ added in v0.3.0
func (m *ContourMesh) Release()
func (*ContourMesh) Reset ¶ added in v0.3.0
func (m *ContourMesh) Reset()
func (*ContourMesh) Update ¶ added in v0.3.0
func (m *ContourMesh) Update()
type ContourPoint ¶ added in v0.3.0
type ContourPoint struct {
// contains filtered or unexported fields
}
type ContourVertex ¶ added in v0.3.0
type ContourVertex struct {
// contains filtered or unexported fields
}
type FontFactory ¶ added in v0.3.0
type FontFactory struct {
// contains filtered or unexported fields
}
func NewFontFactory ¶ added in v0.3.0
func NewFontFactory(renderer *Renderer) *FontFactory
func (*FontFactory) CreateFont ¶ added in v0.3.0
func (f *FontFactory) CreateFont(font *opentype.Font) *Font
func (*FontFactory) Free ¶ added in v0.3.0
func (f *FontFactory) Free()
func (*FontFactory) Init ¶ added in v0.3.0
func (f *FontFactory) Init()
type Layer ¶
type Layer struct { Translation ui.Position ClipBounds ui.Bounds // contains filtered or unexported fields }
func (*Layer) InheritFrom ¶
type Paragraph ¶ added in v0.3.0
type Paragraph struct {
// contains filtered or unexported fields
}
type Renderer ¶ added in v0.3.0
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶ added in v0.3.0
func NewRenderer() *Renderer
func (*Renderer) BeginContour ¶ added in v0.3.0
func (*Renderer) BeginShape ¶ added in v0.3.0
func (*Renderer) BeginText ¶ added in v0.3.0
func (r *Renderer) BeginText(typography Typography) *Text
func (*Renderer) ClipBounds ¶ added in v0.3.0
func (*Renderer) DrawSurface ¶ added in v0.3.0
func (*Renderer) EndContour ¶ added in v0.3.0
func (*Renderer) SetClipBounds ¶ added in v0.3.0
func (*Renderer) SetTextureTransform ¶ added in v0.3.0
func (*Renderer) SetTransform ¶ added in v0.3.0
func (*Renderer) TextureTransform ¶ added in v0.3.0
type Shape ¶ added in v0.3.0
type Shape struct {
// contains filtered or unexported fields
}
type ShapeMesh ¶ added in v0.3.0
type ShapeMesh struct {
// contains filtered or unexported fields
}
func (*ShapeMesh) Append ¶ added in v0.3.0
func (m *ShapeMesh) Append(vertex ShapeVertex)
type ShapePoint ¶ added in v0.3.0
type ShapePoint struct {
// contains filtered or unexported fields
}
type ShapeVertex ¶ added in v0.3.0
type ShapeVertex struct {
// contains filtered or unexported fields
}
type StencilMode ¶ added in v0.3.0
type StencilMode int
const ( StencilModeNone StencilMode = iota StencilModeNonZero StencilModeOdd )
type SubContour ¶ added in v0.3.0
type SubContour struct {
// contains filtered or unexported fields
}
type Target ¶ added in v0.3.0
type Target struct { Framebuffer *opengl.Framebuffer Width int Height int }
type Text ¶ added in v0.3.0
type Text struct {
// contains filtered or unexported fields
}
func (*Text) Init ¶ added in v0.3.0
func (t *Text) Init(typography Typography)
type TextMesh ¶ added in v0.3.0
type TextMesh struct {
// contains filtered or unexported fields
}
func (*TextMesh) Append ¶ added in v0.3.0
func (m *TextMesh) Append(vertex TextVertex)
type TextVertex ¶ added in v0.3.0
type TextVertex struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.