graphics

package
v0.0.0-...-0518d83 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Camera *camera.Camera
View Source
var CursorTrail *texture.TextureSingle
View Source
var Snowflakes []*texture.TextureRegion
View Source
var TriangleShadowed *texture.TextureRegion
View Source
var TriangleSmall *texture.TextureRegion

Functions

func BeginCursorRender

func BeginCursorRender()

func EndCursorRender

func EndCursorRender()

func LoadTextures

func LoadTextures()

func LoadWinterTextures

func LoadWinterTextures()

Types

type Cursor

type Cursor struct {
	LeftButton, RightButton bool
	LeftKey, RightKey       bool
	LeftMouse, RightMouse   bool

	IsReplayFrame bool // TODO: temporary hacky solution for spinners
	IsPlayer      bool
	IsAutoplay    bool
	IsReplay      bool

	OldSpinnerScoring bool

	LastFrameTime    int64 //
	CurrentFrameTime int64 //
	RawPosition      vector.Vector2f
	InvertDisplay    bool

	Position vector.Vector2f

	Name      string
	ScoreID   int64
	ScoreTime time.Time

	SmokeKey bool
	// contains filtered or unexported fields
}

func NewCursor

func NewCursor() *Cursor

func (*Cursor) Draw

func (cursor *Cursor) Draw(scale float64, batch *batch.QuadBatch, color color2.Color)

func (*Cursor) DrawM

func (cursor *Cursor) DrawM(scale float64, batch *batch.QuadBatch, color color2.Color, colorGlow color2.Color)

func (*Cursor) SetPos

func (cursor *Cursor) SetPos(pt vector.Vector2f)

func (*Cursor) SetScreenPos

func (cursor *Cursor) SetScreenPos(pt vector.Vector2f)

func (*Cursor) Update

func (cursor *Cursor) Update(delta float64)

func (*Cursor) UpdateRenderer

func (cursor *Cursor) UpdateRenderer()

Directories

Path Synopsis
gui

Jump to

Keyboard shortcuts

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