Sign in to follow this  

[MDX]TextureLoader error

Recommended Posts

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]

Share this post

Link to post
Share on other sites
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.


Share this post

Link to post
Share on other sites
Thank you Toolmaker.

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

Thanks again.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this