Original Post
its me and my problem again...
a lot of people here say i have to render to an
texture than copy backbuffer to an texture(
what i never get to run)
now i try to use setrendertarget and
use some code of the cubemap demo of sdk 8.1
and there is my problem
how can i render to an single (not cube) texture
can you give me a little example, because i dont
know where to start
like
void createtexture(void)
{
...create texture
...create depth stencil..
return;
}
void rendertotexture(void)
{
..lalala i dont know what to write here
m_d3ddevice->BeginScene();
RenderScene();
m_d3ddevice->EndScene();
return; (to main loop)
}
if in main rendering scene this texture work
i will be happy