factory

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: BSD-3-Clause, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpriteFactory

type SpriteFactory struct {
	// contains filtered or unexported fields
}

SpriteFactory produces sprites

func NewSpriteFactory

func NewSpriteFactory(r *sdl.Renderer, t *data.TextureContainer) *SpriteFactory

NewSpriteFactory instance

func (*SpriteFactory) Draw

func (f *SpriteFactory) Draw(object entity.SceneObject, flip sdl.RendererFlip) error

Draw new sprite

type SymbolFactory

type SymbolFactory struct {
	// contains filtered or unexported fields
}

SymbolFactory responsible for generating text

func NewSymbolFactory

func NewSymbolFactory(f *data.FontContainer, r *sdl.Renderer) *SymbolFactory

NewSymbolFactory instance

func (*SymbolFactory) Draw

func (f *SymbolFactory) Draw(object entity.SceneObject) (err error)

Draw new text surface

Jump to

Keyboard shortcuts

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