Documentation
¶
Index ¶
- type Draw
- func (d *Draw) DrawCircle(x, y, radius int, op *DrawOptions)
- func (d *Draw) DrawLine(points []Position, op *DrawOptions)
- func (d *Draw) DrawRectangle(x, y, width, height int, op *DrawOptions)
- func (d *Draw) DrawSegment(x1, y1, x2, y2 int, op *DrawOptions)
- func (d *Draw) DrawTriangle(x1, y1, x2, y2, x3, y3 int, op *DrawOptions)
- func (d *Draw) Encode() []Vertex
- func (d *Draw) GetTheme() *Theme
- func (d *Draw) SetTheme(t *Theme)
- type DrawContext
- type DrawOptions
- type OpCode
- type Position
- type Style
- type Theme
- type Vertex
- type VertexAttributeLayout
- type VertexBufferLayout
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Draw ¶
func (*Draw) DrawCircle ¶
func (d *Draw) DrawCircle(x, y, radius int, op *DrawOptions)
func (*Draw) DrawLine ¶
func (d *Draw) DrawLine(points []Position, op *DrawOptions)
func (*Draw) DrawRectangle ¶
func (d *Draw) DrawRectangle(x, y, width, height int, op *DrawOptions)
func (*Draw) DrawSegment ¶
func (d *Draw) DrawSegment(x1, y1, x2, y2 int, op *DrawOptions)
func (*Draw) DrawTriangle ¶
func (d *Draw) DrawTriangle(x1, y1, x2, y2, x3, y3 int, op *DrawOptions)
type DrawContext ¶
type DrawContext interface { DrawCircle(x int, y int, radius int, op *DrawOptions) DrawLine(points []Position, op *DrawOptions) DrawRectangle(x int, y int, width int, height int, op *DrawOptions) DrawSegment(x1 int, y1 int, x2 int, y2 int, op *DrawOptions) DrawTriangle(x1 int, y1 int, x2 int, y2 int, x3 int, y3 int, op *DrawOptions) Encode() []Vertex GetTheme() *Theme SetTheme(t *Theme) }
func NewDrawContext ¶
func NewDrawContext(width, height int) DrawContext
type DrawOptions ¶
type DrawOptions struct {
Style
}
type Theme ¶
type Theme struct { BackgroundColor color.Color PrimaryColor color.Color SecondaryColor color.Color TextColor color.Color HandleColor color.Color }
func DefaultTheme ¶
func DefaultTheme() *Theme
type VertexAttributeLayout ¶
type VertexBufferLayout ¶
type VertexBufferLayout struct { ArrayStride uint64 Attributes []VertexAttributeLayout }
Click to show internal directories.
Click to hide internal directories.