Skip to content

Commit

Permalink
Adding a comment for the different flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Ray committed Aug 14, 2020
1 parent c6c1098 commit b423a2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packer/pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ type Packer struct {
id *pixelutils.IDGen
}

// NewPacker-time flags
const (
AllowGrowth uint8 = 1 << iota // Should the packer space try to grow larger to fit oversized images
DebugDraw // Show the lines of the empty spaces when drawing the texture as an entire sprite
)

// Insert-time flags
const (
InsertFlipped uint8 = 1 << iota // Flip the sprite upside-down on insert
OptimizeOnInsert // When a new image is inserted, defragment the texture space
Expand Down

0 comments on commit b423a2d

Please sign in to comment.