Dum Dum Head
New member
- Joined
- Dec 17, 2003
- Messages
- 1
Hi all,
Im 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. Im 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.
Im 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.
Im 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. Im 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.
Im 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.