Skip to content

Thaugdahl/image additions #5

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

joakibhu
Copy link
Member

This PR adds some extra features to the TDT4102::Image class that allow for reading and writing pixel data. In addition, it adds a file load cache with O(1) membership querying for SDL_Texture *, SDL_Surface *, and image load paths.
Everything looks to be working, and the program doesn't trip up the address sanitizer. I am still to review the method by which I copy pixel data to and from the SDL_Surface, but the PR should be mostly feature-complete and has seen some testing.

Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant