Page 1 of 1
SetRenderTarget help

Posted:
Nov 9, 2006 @ 9:08pm
by kornalius

Posted:
Nov 10, 2006 @ 4:49am
by fast_rx

Posted:
Nov 10, 2006 @ 4:04pm
by kornalius

Posted:
Nov 10, 2006 @ 10:28pm
by fast_rx
'could' be? Have you tried it?
Just thinking that accessing b while you're trying to render to it may be doing something.
I assume that you're checking that m_display is valid when you called getDisplay?

Posted:
Nov 11, 2006 @ 5:11am
by kornalius
Yes I did comment out that line.
I can get it to clear with any color properly using Clear() however anything else I try to do to the surface after is not rendered. m_display is valid.

Posted:
Nov 12, 2006 @ 5:50pm
by kornalius
Any idea why only the Clear would work but not the other functions?

Posted:
Nov 12, 2006 @ 6:22pm
by fast_rx
What happens if you clear twice? Just wondering if the problem is with all functions except clear - or all funtions besides the first...

Posted:
Nov 13, 2006 @ 6:42pm
by kornalius
Hi,
I got it. I saved the surface to disk to check and everything is drawn to the surface. It looks like it is when I assign the surface to my sprite.
So it was my fault all the way. Of course!
Thanks for your time.