I've got a bunch of 3-D routines now, and they work decent now. However, I can no longer directly draw to the screen. Whatever quad Allegro draws to is transformed off into oblivion somewhere.
Do I figure I need to reset some matrices so that Allegro can draw to the correct place. However, I'm not sure what to set them to.
Thanks in advance,
--Chris Katko
[off-topic ordeals? A habit I guess!]
Here's how I do it. I push old projection matrix before going into 3D mode, then pop it to get back allegro's setup.
You might want to use this stuff to switch back and forth. At least it'd be a bit easier. And then you know it should be saving and restoring all state that allegro may need.
I've only the faintest idea what I'm talking about here, but I'm pretty sure there is a function to retrieve a matrix that is in use. You will have to find out how to store the matrix Allegro uses for projection, do your 3d stuff, then restore the matrix before drawing with allegro.
You will probably have to (manually?) set any GL states you may have changed.
[EDIT]
oh, allegro does that too. Right on!