D3DXLoadSurfaceFromResource

Started by
11 comments, last by Progames25 15 years, 3 months ago
Ah, ok.
Well,
what would be the best way to make the surfaces and textures using images from my resources without using that?

The book I have (Beginning Game Programming Second edition by Jonathan S. Harbour uses that LoadFromFile style with the getimageinfo (and it does get a little anoying using all those), so I don't really know another way.

Thanks,
Progames25
-----------------------------I use C++ and DirectX.I'm new to game programming.
Advertisement
Quote:Original post by Progames25
Ah, ok.
Well,
what would be the best way to make the surfaces and textures using images from my resources without using that?

The book I have (Beginning Game Programming Second edition by Jonathan S. Harbour uses that LoadFromFile style with the getimageinfo (and it does get a little anoying using all those), so I don't really know another way.

Thanks,
Progames25
If you need a surface, there doesn't appear to be any way. If you need a texture however, there's D3DXCreateTextureFrom*() functions.
Alright, ill try using that one and see what happenes after I fix up some stuff.



Thanks,
Progames25
-----------------------------I use C++ and DirectX.I'm new to game programming.

This topic is closed to new replies.

Advertisement