Jump to content
  • Advertisement
Sign in to follow this  
jad_salloum

texture problem

This topic is 4697 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

Advertisement
Hi,

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?

ace

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
Quote:
Original post by jad_salloum
paste some code plzzzzzzzzzzzzzzzzzz[...]zzzz

g_pDevice->SetRenderTarget(pTexture->GetSurfaceLevel(0));



EDIT:
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);
pPrevRenderTarget->Release();
pSurf->Release();

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!