Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add (*Packer).InsertPictureData & (*Packer).InsertPictureDataV #1

Merged
merged 3 commits into from
Mar 28, 2021

Conversation

cebarks
Copy link
Contributor

@cebarks cebarks commented Mar 26, 2021

This adds two methods to packer.Packer:

  • InsertPictureData(id int, pic *pixel.PictureData) (err error)
  • InsertPictureDataV(id int, pic *pixel.PictureData, flags uint8) (err error)
    These simply extract out the code that used to be part of InsertV() into their own method so *pixel.PictureData can be directly inserted without creating a sprite first.

I didn't have any easy way to test to see if this breaks anything, but I'm not sure why it would; It's just a refactor.

@cebarks cebarks changed the title Packer insert picture add (*Packer).InsertPictureData & (*Packer).InsertPictureDataV Mar 26, 2021
@dusk125 dusk125 merged commit 9e4d5f5 into dusk125:master Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants