Original Post
can anyone tell me how to write a text on a texture so that they become as one surface together . please paste some code
Quote:
Original post by jad_salloum
paste some code plzzzzzzzzzzzzzzzzzz[...]zzzz
g_pDevice->SetRenderTarget(pTexture->GetSurfaceLevel(0));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();This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more