I don't get it. I'm trying to make a texture from a file. The book I have says to use TextureLoader, but that doesn't exist anymore. I read that you can make textures using
[code]Texture texture = new Texture(stuff here);[/code]
But there's nine different ways to fill the constructor, and half of them I can't even get to compile. I'm so lost. *cries*

Loading a *&#@ing texture... (C#)
davilafon
Mystikef
Off the top of my head...
Texture
t = Texture.FromStream(device, System.IO.File.OpenRead("texture.bmp"), Usage.None, Pool.Managed);illadelph
ellison8
I too am using the Feb 2006 release of the SDK, and the texture loader is part of the 3dx Assembly, make sure that you have the microsoft.directx.direct3DX assembly referenced in you solution. The current version for the 1.1 Framework is 1.0.2910.
nbnb
The above code is from the new Beta libraries, and the textureloader is still in the official release. Remembering that the Beta code has not been release yet all questions should be posted in the Public beta newsgroups for the product.
In the case of your problem, as you are following a book I would make sure that I am using the 1.1 assemblies (Full Release of the Managed DirectX System) as there are going to be lots and lots of changes that you are going to have to make. Once you get the code running and if you would like to convert them to the New Beat code, then is the time to convert it.
Kumarp