Sign in to follow this  
Plerion

[XNA] Loading textures from memory

Recommended Posts

Plerion    381
Hello everybody! Im trying to load textures from memory in XNA. Lets imagine i have some byte-arrays with data for each miplevel in a S3 texture compression format. These now should be converted to a Texture2D. Is there a way to do that? Thats what i mean in C++:
D3DXLoadSurfaceFromMemory(surf, 0, 0, data, format, blocksize * r.right, 0, &r, D3DX_DEFAULT, 0)
Is there something similar for XNA? Greetings Plerion

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