AngelDaniel: What you say doesn't fix anything. I don't spect my module users to add an item to this stack when THEY create a canvas or change it using a SetGraphics. My module handles all its canvas properly, that's not the problem, the problem is, if a user has defined his or her own canvas (otside my module), and I change it inside the module, how can I roll back this change if I have no information of what graphic object (canvas) was active before?
It's easy to store the alpha value, the blend mode,etc, using a GetAlpha, GetBlend, etc... Why GetGraphics doesn't exists?
My function needs to do the following:
1.- Get the state of all graphics (alpha, blending, active canvas, etc)
2.- Do whatever, changing whatever
3.- Leave everything as it was.
With current graphic commands that's not possible or, if it is, I would like to know how.
There's no sense to have a SetGraphics without a GetGraphics.
Said in other words, when you say 'Put it on the stack, then take it back off' How Am I supoused to take it back off, if I can't gess it's original state, becouse it depends on another person code?
It's easy to store the alpha value, the blend mode,etc, using a GetAlpha, GetBlend, etc... Why GetGraphics doesn't exists?
My function needs to do the following:
1.- Get the state of all graphics (alpha, blending, active canvas, etc)
2.- Do whatever, changing whatever
3.- Leave everything as it was.
With current graphic commands that's not possible or, if it is, I would like to know how.
There's no sense to have a SetGraphics without a GetGraphics.
Said in other words, when you say 'Put it on the stack, then take it back off' How Am I supoused to take it back off, if I can't gess it's original state, becouse it depends on another person code?