Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

can anybody help me to render small texture on another texture. i.e I have one background image, when user touches on the screen it should draw small(circle or any object) on it.

can anybody suggest me good tutorial to starts with it?

share|improve this question
add comment

2 Answers

You can bind the background as a render target, and then render the circle onto it. And the next time you want to render a circle onto it, you bind it, but don't clear the colorbuffer, just draw the circle again.

share|improve this answer
    
any link would be appreciated! –  Hitendra Oct 31 '12 at 6:20
    
add comment

It's called off-screen rendering. In OpenGL you perform normal rendering, but into another render target where you have bound texture which you want render to.

There's wiki documenting it very well, especially this section. It has example for both OpenGL ES1, ES2.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.