D3DXCreateTextureFromResource(...)

Started by
10 comments, last by SpreeTree 20 years, 1 month ago
In your resource file, you should declare your JPG resource something like:

ID_WHATEVER RCDATA DISCARDABLE "whatever.jpg"

Then, in your code, you can load it like:

D3DXCreateTextureFromResource(pDevice, NULL, MAKEINTRESOURCE(ID_WHATEVER), &m_pTexture);

xyzzy
Advertisement
you are fantastic :d ! it''s perfect.
thanks
can you tell me if I can play song (always with directX) using resource ?

This topic is closed to new replies.

Advertisement