Skip to main content
gamedev.net
🔒 Locked

Getting loaded image data

Started by wforl 0 replies 350+ views
Original Post
wforl
wforl
Is there a way to get the data from a IDirect3DTexture9 something like the D3DXIMAGE_INFO structure would be perfect, but that receives the original image data, im looking for the data after the image is loaded, such as Width; Height; Depth; MipLevels; Format;
Buckeye
Buckeye
How 'bout:

LPDIRECT3DSURFACE9 surface;
D3DSURFACE_DESC desc;

texture->GetSurfaceLevel(0,&surface);
surface->GetDesc(&desc);

Please don't PM me with questions. Post them in the forums for everyone's benefit, and I can embarrass myself publicly. You don't forget how to play when you grow old; you grow old when you forget how to play.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.