Rendering "into" a texture

HI

I’ve got a problem…

I’m trying to implement DYNAMIC envirnment mapping in my engine, but there’s one thing I don’t like:

To render the six cube sides I’ve to render them into the back buffer and copy them with glCopyTexImage2D into the texture. Is there a way to render them directly into the texture?

as far as i know, there is no way to render directly into a texture.
You have to use glCopyTexImage2D, the only thing that spedds things up a little is to use glCopyTexSubImage2D as often a possible.

actually i would be glad if i am wrong, would halp me too…

Chris

Originally posted by DaViper:
as far as i know, there is no way to render directly into a texture.
You have to use glCopyTexImage2D, the only thing that spedds things up a little is to use glCopyTexSubImage2D as often a possible.

Thanx anyway:-)