DirectX8 Texture Loading Without D3DX

Started by
2 comments, last by Punika 22 years, 9 months ago
Hey Ho! At the Moment i am writting an Render Wrapper. It uses OpenGL and DirectX. With OpenGL you can create a Texture with the data bytes that i am using. But DirectX doesn''t support this feature. I have tried do lock blt unlock the data on the Texture but that fails. There are only some strange Chars. Thanks for your help.
Punika
Advertisement
Hi,
I''m also been writing a Wrapper for a while. It supports both D3D and OGL. I use my simple image class to load images and manually Lock surface and set images. (I don''t use D3DXCreateTextureFromFile()).
If you are interested I can post some code how I do it.
I really appreciate that because my code doesn''t works.

Thanks
Punika
Look at the video texture sample - it shows how to lock a texture and pass data to it.
Author, "Real Time Rendering Tricks and Techniques in DirectX", "Focus on Curves and Surfaces", A third book on advanced lighting and materials

This topic is closed to new replies.

Advertisement