-
Notifications
You must be signed in to change notification settings - Fork 0
Entity
Dima Marhitych edited this page Oct 23, 2023
·
1 revision
Import it like this:
import (
"github.com/dimkauzh/vertex/src/entity"
)
type Entity struct {
Pos vector.Vector2D
Width float32
Height float32
Rect *shape.Rect
}
func NewEntity(x, y, width, height float32) -> Entity
func (e *Entity) NewRect(x, y, width, height float32, color [3]float32)
// Deprecated: Won't be supported and will be deleted soon
func (e *Entity) SetRectColor(color [3]float32)