Documentation
¶
Index ¶
- Constants
- func ScreenToWorld(screenPoint cp.Vector, cameraGeoM ebiten.GeoM, camera Camera, flipYAxis bool, ...) cp.Vector
- type Camera
- type Drawer
- func (d *Drawer) CollisionPointColor() cp.FColor
- func (d *Drawer) ConstraintColor() cp.FColor
- func (d *Drawer) Data() interface{}
- func (d *Drawer) DrawCircle(pos cp.Vector, angle, radius float64, outline, fill cp.FColor, ...)
- func (d *Drawer) DrawDot(size float64, pos cp.Vector, fill cp.FColor, data interface{})
- func (d *Drawer) DrawFatSegment(a, b cp.Vector, radius float64, outline, fill cp.FColor, data interface{})
- func (d *Drawer) DrawPolygon(count int, verts []cp.Vector, radius float64, outline, fill cp.FColor, ...)
- func (d *Drawer) DrawSegment(a, b cp.Vector, fill cp.FColor, data interface{})
- func (d *Drawer) Flags() uint
- func (d *Drawer) HandleMouseEvent(space *cp.Space)
- func (d *Drawer) OutlineColor() cp.FColor
- func (d *Drawer) ShapeColor(shape *cp.Shape, data interface{}) cp.FColor
- func (d *Drawer) WithScreen(screen *ebiten.Image) *Drawer
Constants ¶
View Source
const DrawPointLineScale = 1.0
View Source
const GRABBABLE_MASK_BIT uint = 1 << 31
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Drawer ¶
type Drawer struct {
Screen *ebiten.Image
ScreenWidth int
ScreenHeight int
StrokeWidth float32
FlipYAxis bool
// GeoM for drawing vertices. Useful for cameras.
// Apply GeoM to shift the drawing.
GeoM *ebiten.GeoM
OptStroke *ebiten.DrawTrianglesOptions
OptFill *ebiten.DrawTrianglesOptions
// Deprecated: Use GeoM instead of Camera
Camera Camera
// Deprecated: Use OptStroke and OptFill instead of AntiAlias
AntiAlias bool
// contains filtered or unexported fields
}
func (*Drawer) CollisionPointColor ¶
func (*Drawer) ConstraintColor ¶
func (*Drawer) DrawCircle ¶
func (*Drawer) DrawFatSegment ¶
func (*Drawer) DrawPolygon ¶
func (*Drawer) DrawSegment ¶
func (*Drawer) HandleMouseEvent ¶
func (*Drawer) OutlineColor ¶
func (*Drawer) ShapeColor ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
ball
command
|
|
|
basic
command
|
|
|
bench
command
|
|
|
camera
command
|
|
|
chains
command
|
|
|
drawing_with_ebitengine
command
|
|
|
plink
command
|
|
|
theojansen
command
|
Click to show internal directories.
Click to hide internal directories.
