Original Post
How can I load a texture from raw data? Meaning a fileformat without a header or a custom format.. I know the size of it (256x256), and the data is stored in A8R8G8B8 format, uncompressed.. Basicly, it just needs to be copied onto the texture (the texture is created with D3DXCreateTexture, and has A8R8G8B8 as format).. So, how to do it? I thought about just locking the texture, but that doesn't work if the data is in video memory (which is what I want it to be).. Should I create a temporary texture in system memory, memcpy the data there, unlock, then UpdateTexture on it? Or will that fail too? All help appriciated..