Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

GTL Part 2.1 : IOStreams cont.

Sign in to follow this  


So, I was giving this project some thought on the way home from London last night and the main issue which I was wondering about is how to deal with the image headers and extract the infomation while keeping a sane stream interface and I think I've got the answer - a state machine or call back system.

Basically, you'd register a call back which would be called when decoding of the header data is complete, the rest of the data can be decoded and put out into memory.

So, it would look something like this;



I'm still working on the specifics [grin]
Sign in to follow this  

1 Comment

Recommended Comments

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!