Archived

This topic is now archived and is closed to further replies.

aker_jus

Texture breaker.

Recommended Posts

aker_jus    122
I am making a class to break textures to power of two of given size. 256x256, 512x512, to be able to render large, non power of two images. What''s the best way to break an already loaded IDirect3DTexture9* to several sub textures? Thanks.

Share this post


Link to post
Share on other sites
probably lock the surface then copy rects to other textures. But I''m not certain that loading a non^2 and then splitting it is valid work around. Unless your just doing this to save the split textures to file later on.

Share this post


Link to post
Share on other sites