n***@hotmail.com
2007-10-20 09:08:28 UTC
When I try like this
Set g_TEXT_Texture = g_d3dx.CreateTextureFromResource(g_D3DDevice,
App.hInstance, "101")
it causes the error
D3DXERR_INVALIDDATA
I think invalid data is not really the problem beacuse the same error
happens even if I make up a bogus name for the resource instead of
"101", it also happens if I make up a bogus number for the 2nd
parameter. Clearly it can't access any data in these cases, whether
invalid or not.
Unfortuanetly the definition of the last parameter isn't given in MSDN
and I'm only guessing it should be the name of the resource. It's
described like this:
"SrcResource
String that specifies the resource from which to create the texture. "
Does that sound like "101"?
Alternatively is there any other way to create a texture from memory
without it having to be already in the correct format?
What do people usually do for textures without having to keep seperate
files?
Set g_TEXT_Texture = g_d3dx.CreateTextureFromResource(g_D3DDevice,
App.hInstance, "101")
it causes the error
D3DXERR_INVALIDDATA
I think invalid data is not really the problem beacuse the same error
happens even if I make up a bogus name for the resource instead of
"101", it also happens if I make up a bogus number for the 2nd
parameter. Clearly it can't access any data in these cases, whether
invalid or not.
Unfortuanetly the definition of the last parameter isn't given in MSDN
and I'm only guessing it should be the name of the resource. It's
described like this:
"SrcResource
String that specifies the resource from which to create the texture. "
Does that sound like "101"?
Alternatively is there any other way to create a texture from memory
without it having to be already in the correct format?
What do people usually do for textures without having to keep seperate
files?