core

package
v0.0.0-...-6f4ae11 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Drawable

type Drawable interface {
	Draw()
}

type Object

type Object interface {
	Update()
}

type Text

type Text struct {
	Text     string
	Font     ray.Font
	Pos      ray.Vector2
	FontSize float32
	Spacing  float32
	Color    ray.Color
	// contains filtered or unexported fields
}

func NewText

func NewText(text string, Font ray.Font, Pos ray.Vector2, FontSize float32, Spacing float32, Color ray.Color) *Text

func (*Text) Draw

func (t *Text) Draw()

func (*Text) DrawCentered

func (t *Text) DrawCentered()

func (*Text) Measure

func (t *Text) Measure()

func (*Text) SetText

func (t *Text) SetText(s string)

type Texture

type Texture struct {
	Texture  ray.Texture2D
	Dest     ray.Rectangle
	Src      ray.Rectangle
	Rotation float32
	Tint     ray.Color
	Filter   ray.TextureFilterMode
}

func NewTexture

func NewTexture(path string, src ray.Rectangle) *Texture

func (*Texture) Draw

func (t *Texture) Draw()

func (*Texture) DrawAt

func (t *Texture) DrawAt(dst ray.Rectangle)

func (*Texture) SetTextureFilter

func (t *Texture) SetTextureFilter(f ray.TextureFilterMode)

func (*Texture) Unload

func (t *Texture) Unload()

Jump to

Keyboard shortcuts

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