Sign in to follow this  
circl3

DX7 : How to create a texture from pixels?

Recommended Posts

circl3    122
Hello, I'm having trouble coding an image loading routine. I have the file loaded properly and the pixels are in a buffer just waiting to go into a texture. It's a DXT5 compressed .DDS image. I know DirectX8+ has functions to do this easily, but I'm seeing this is not as easy in DX7.

Share this post


Link to post
Share on other sites
don    431
It is possible. Textures in DX7 were simply DDraw surfaces. You'll have to create an IDirectDrawSurface7 surface of the appropriate format, lock the surface, copy the compressed bits to the surface, unlock, then set the texture into the device using IDirect3DDevice7::SetTexture. This is explained in the section "Texture Compression" in the DX7 SDK docs.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
it is not possible, te SDK says no thing of compressed datas.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this