Awakening
Active Member
I am new to C++ and SDL, have read through most of Lazy Foo's tutorials. I'm coding a little puzzle game for Pandora as a learning project (I have quite some programming experience). I've run into a problem pretty early but perhaps someone here can help me out.
I have 3 surfaces: image, mask and composed
image and mask are loaded from existing images and I have no problem blitting them to the screen with full transparency. I can also blit the mask on top of the image and blit the result to the screen, no problems there.
You might have guessed what my problem is by now. I want to blit the image and mask surfaces to the composed surface but I apparently need to do something to the composed surface to make this work. My guess is that it got something to do with the clipping rectangle of the surface but so far I got no luck setting it. Or am I missing something else?
This might not be important knowledge at this point but I figure it would be a good thing to know.
Please help me
I have 3 surfaces: image, mask and composed
image and mask are loaded from existing images and I have no problem blitting them to the screen with full transparency. I can also blit the mask on top of the image and blit the result to the screen, no problems there.
You might have guessed what my problem is by now. I want to blit the image and mask surfaces to the composed surface but I apparently need to do something to the composed surface to make this work. My guess is that it got something to do with the clipping rectangle of the surface but so far I got no luck setting it. Or am I missing something else?
This might not be important knowledge at this point but I figure it would be a good thing to know.
Please help me