Gedebook2005

Maybe someone can help me.
Can i have a sample for FromFile method


Re: XNA Game Studio Express Sample FromFile

hjjh

Texture2D exampleTexture = Texture2D.FromFile(graphicDevice.GraphicsDevice, TexturePath);




Re: XNA Game Studio Express Sample FromFile

Gedebook2005

How do i write the code for "TexturePath"
Example c:\folder\file.jpg or something...




Re: XNA Game Studio Express Sample FromFile

Jim Perry

If you're using that method it would be something that resolves to the full path as you have it. Is there a reason you're using this method instead of the content pipeline




Re: XNA Game Studio Express Sample FromFile

Gedebook2005

well.. I'm a newbie so don't know much about what 'Method Instead' or 'Content Pipeline' is.

Could you give me an example, perhaps i can understand it easily.
Thanks