Jump to content
  • Advertisement
Sign in to follow this  

[MDX]TextureLoader error

This topic is 4478 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!