Skip to content

Commit

Permalink
Moving insert-time flag to proper initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Ray committed Aug 14, 2020
1 parent 1a5aea8 commit c6c1098
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packer/pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ type Packer struct {
}

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
OptimizeOnInsert // When a new image is inserted, defragment the texture space
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
)

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

// NewPacker creates and returns a new texture packer
Expand Down

0 comments on commit c6c1098

Please sign in to comment.