Compiling 1.3 without DirectX?

Greetings everyone,

Is there a way to compile SDL 1.3 on windows XP and VS2008 without having to install DirectX?

If not, something like #define SDL_DIRECTX_DISABLE would be nice;

So, there is no need for those files:

dinput.h
dsound.h
directx.h

thx

2009/9/24 golgoth :

Is there a way to compile SDL 1.3 on windows XP and VS2008 without having to
install DirectX?

You’d lose joystick support if you disable directinput, though I think
it could be done using raw input directly instead.

If you’re using Visual Studio you can just install the latest DirectX
SDK and add the appropriate include and lib files to your VC++
Directories.

If you’re using mingw32 with configure, it should automatically build
without DirectX support.

If you just want to remove it entirely by hand, you can edit
include/SDL_config.h and comment out SDL_VIDEO_RENDER_D3D,
SDL_VIDEO_RENDER_DDRAW, SDL_AUDIO_DRIVER_DSOUND, and
SDL_JOYSTICK_DINPUT.

I recommend building with DirectX though. :)On Thu, Sep 24, 2009 at 7:06 PM, golgoth wrote:

Greetings everyone,

Is there a way to compile SDL 1.3 on windows XP and VS2008 without having to
install DirectX?

If not, something like #define SDL_DIRECTX_DISABLE would be nice;

So, there is no need for those files:

dinput.h
dsound.h
directx.h

thx


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

THX guys,

DirectX being implemented in a cross platform architecture is a bit confusing
my understanding is that?s how Windows deal with inputs. I did install the SDK and try to add the include directory in Tools-Options-Projects and Solutions-VC++ Directories but it didn?t do a thing, I added it in the SDL project instead.