Advertisement Jump to content
Sign in to follow this  

texture problem

This topic is 4879 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


The problem firstly is that you will need to expand on your post quite a bit before people are willing to help. People won't know what you mean.

That aside, i shall ask.

Can you expand please then i can help. Do you simply mean how to write text to a DirectX window?


Share this post

Link to post
Share on other sites
hi acelover , no i don't mean writting text on a window , i will explain in details ::

i have an X file that has a texture covering it , so i want to write some text on its texture not on the window, so if the X file is for putting a name on it , the name should stick on the texture even if the x file is animated and make movements . i think that i need something called ((render text to texture)) but i don't know how to do it thanks for ur help

Share this post

Link to post
Share on other sites
paste some code plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

Share this post

Link to post
Share on other sites
Original post by jad_salloum
paste some code plzzzzzzzzzzzzzzzzzz[...]zzzz


Ok, sorry for flaming.
The full version could be:

ID3DXSurface *pSurf = pTexture->GetSurfaceLevel(0);
ID3DXSurface *pPrevRenderTarget = g_pDevice->GetRenderTarget(0);
g_pDevice->SetRenderTarget(0, pSurf);
// Render as if you were rendering to the screen.
// ...
g_pDevice->SetRenderTarget(0, pPrevRenderTarget);

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!