Loading Memory Mapped File to Texture

Dum Dum Head

Newcomer
Joined
Dec 17, 2003
Messages
1
Hi all,

I'm new to the forum but just recently got my feet wet in Managed DX and was wondering if any of you would know how to use load a memory-mapped file into a texture. I'm thinking I need to use the LockRectangle command and pass in an unsafe pointer somewhere or maybe I need to do a memory copy.

This was done in OpenGL (porting it to Managed DX right now) by just passing the unsafe pointer to the file (in memory) to the glCompressedTexImage2D command.

I'm trying this out as opposed to just using the TextureLoader because the OpenGL version of my app loads in textures noticeably faster than when I use the DX version with TextureLoader.
 
Back
Top