[MDX]TextureLoader error

Started by
1 comment, last by AHowell 18 years ago
I'm currently trying to teach myself C# and Managed DirectX by converting my pre-existing particle editor over. Although for some reason the simple act of loading a texture is eluding me. I've seen code snippets for loading using

Texture img = null;
img = TextureLoader.FromFile(filled out variables);


unfortunately I'm getting the error on compile CS0103 The name TextureLoader does not exist in the current context. So I looked up error CS0103 and it says that I'm not using the correct "using"s. But this is what I have for that

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using Microsoft.DirectX;
using Microsoft.DirectX.Direct3D;


edit : forgot to mention using VS2005 and April 2006 version of DX:SDK Thanks in advance, Adam [Edited by - AHowell on April 16, 2006 11:30:26 PM]
Advertisement
Did you add the references to the DirectX DLLs?

Right click on References under your project. Select "Add Reference" and in the .NET tab, find Microsoft.DirectX. Then add Microsoft.DirectX, Microsoft.DirectX.Direct3D and Direct3DX.

Toolmaker

Thank you Toolmaker.

It was that amazingly easy part of adding the Direct3DX reference that I seemed to have left off.

Thanks again.

Adam

This topic is closed to new replies.

Advertisement