No DirectX9 in Dev-C++ (Tip to fix it!)

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Jedive
Posts: 146
Joined: Wed Apr 28, 2004 5:51 pm

No DirectX9 in Dev-C++ (Tip to fix it!)

Post by Jedive »

Even if you define _IRR_COMPILE_WITH_DIRECTX_9_ in Dev-C++, DX9 is removed due to a bug in IrrCompileConfig.h. Change the part where says:

Code: Select all

#if _MSC_VER < 1300
#undef _IRR_COMPILE_WITH_DIRECTX_9_
#pragma message("Compiling Irrlicht with Visual Studio 6.0, support for DX9 is disabled.")
#endif
With:

Code: Select all

#if (_MSC_VER < 1300 && !defined(__GNUC__))
#undef _IRR_COMPILE_WITH_DIRECTX_9_
#pragma message("Compiling Irrlicht with Visual Studio 6.0, support for DX9 is disabled.")
#endif
And that's all! :)
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Ah, you're right, sorry. Didn't think about people recompiling the engine with D3D9 support in DevC++ :)
XargoL
Posts: 22
Joined: Sun Aug 01, 2004 7:55 pm

Post by XargoL »

I simply edited the whole file to this:

Code: Select all

// Copyright (C) 2002-2005 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in Irrlicht.h

#ifndef __IRR_COMPILE_CONFIG_H_INCLUDED__
#define __IRR_COMPILE_CONFIG_H_INCLUDED__

#define _IRR_COMPILE_WITH_DIRECTX_8_
#define _IRR_COMPILE_WITH_DIRECTX_9_
#define _IRR_COMPILE_WITH_OPENGL_
#define _IRR_COMPILE_WITH_ZLIB_
#define _IRR_COMPILE_WITH_LIBJPEG_

#endif
Jedive
Posts: 146
Joined: Wed Apr 28, 2004 5:51 pm

Post by Jedive »

Yeah XargoL, but I was thinking about a fix that could be included in the next IrrLicht update ;)
Reiyn
Posts: 23
Joined: Sat Mar 05, 2005 7:51 pm
Location: Canada

Post by Reiyn »


Thank you very much for solving the problem! WoohoO! :D
Reiyn
Creating "Chimera", an Online RPG
DAoC - Guinevere - Druid rr11
WoW - Gorgonnash - Druid 55
Jedive
Posts: 146
Joined: Wed Apr 28, 2004 5:51 pm

Post by Jedive »

:)
Guest

Post by Guest »

Good work , jedive!! Thank u!!
Post Reply