package
Version:
v0.0.0-...-251eadb
Opens a new window with list of versions in this module.
Published: Jun 29, 2016
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package gfx2 is the 2D graphics abstraction library
A Sheet is a collection of sprites
NewSheet creates a new sheet given the image file
Add adds specific region as a referenceable area and returns the reference ID
Copy copies the given reference index from the sprite sheet onto the renderer
type Sprite struct {
Position sdl.Rect
}
A Sprite is an object represented by a texture and a position
NewSprite creates a new sprite at the given position
Render renders the sprite
Source Files
¶
Click to show internal directories.
Click to hide internal directories.