Can't Load Textures

Started by
11 comments, last by dawoodr 9 years, 4 months ago

The problem is solved, thanks for the help!

If you look at this link http://directxtk.codeplex.com/wikipage?title=WICTextureLoader&referringTitle=Home it is saying "The module assumes that the client code will have already called CoInitialize or CoInitializeEx as needed by the application before calling the WIC loader routines" so all I had to do was to write "hResult = CoInitialize(NULL);" before I used the WICLoad function.

http://msdn.microsoft.com/en-us/library/windows/desktop/ms678543%28v=vs.85%29.aspx

Just writing this incase somebody else encounters the same problem and happens to come across my thread.

Regards!

Advertisement
Just noticed I don't see an input element description for texture, without ths how can the shader know how to render the texture? You only have "POSITION" and "COLOR"... I know you said you fixed it, but was this part of the fix?

Just noticed I don't see an input element description for texture, without ths how can the shader know how to render the texture? You only have "POSITION" and "COLOR"... I know you said you fixed it, but was this part of the fix?

Yes, I had that one written wrong aswell, it is suposed to be TEXCOORD instead of COLOR.

This topic is closed to new replies.

Advertisement