SDL with Direct3D

I agree with all of these.
However, If you want to use DirectX, why use SDL?
You know that your game is running only in Windows
So, why do you use SDL and not Windows API which is a a little bit faster?
I’m writing fully crossplatform game, but, if defined Win32 symbols, I’m
enabling Direct3D 9 support in my game - when game started first time, user
can select renderer that he like. Do you see, how it supported in Unreal
Tournament?
But if I can’t get SDL window’s Handle, than I need to create my own window,
i.e if I use OpenGL I need to create SDL window (because I want to write
crossplatform game) and parsing events by SDL. But if I use Direct3DRM I
need to create own window and parsing events by WinAPI. I should write big
same code two times :o(

Therefore I have one question to Sam Lantinga!!! If SDL creates window by
WinAPI (in win32 platform), SDL has handle of a window, simply it’s don’t
declared in header files, am I right? Therefore I can declare extern
variable with handle in my source code, is it so? If yes, how I can do it?

Finally, If you have start learning DirectX lately, I suggest you give it
up
and start learning OpenGL.

  • It is cross-platform
  • It is very easy to learn
  • DirectX is changing in every version (Microsoft sucks) but OpenGL is the
    same.
    I write only with DX9 - I’m using vertex and pixel shaders, that
    don’t supported by DX8. Game is too big and I can to distribute DirectX9
    End-User version (34MB) with it.
  • It is full hardware accellerated
  • It is faster than DirectX (I believe)
    Direct3D is faster than OpenGL in windows platform!
    Different games show from 1.2 to 1.5 difference in FPS in favour of DX.

try read the red book. Is the OpenGL Bible
http://tassadar.physics.auth.gr/~chameleon/OpenGL/The%20Red%20Book/
I’m writing in OpenGL for two years and I was read Red Book from first to
last page for three times :o) It’s really great book!!!
But Direct3D has bigger speed in Windows and many effects, e.g. shadows,
collisions etc. Also Direct3D has better shaders support. So I should write
with support both API…

Sorry for my worse english,
ALakazam

since oGL 1.1 no newer header / libs we’re created by ms so you have to use
those damn extension.> ----- Original Message -----

From: j_post@pacbell.net (Jeff Post)
To:
Sent: Monday, August 18, 2003 8:36 PM
Subject: Re: [SDL] SDL with Direct3D

On Monday 18 August 2003 09:31 am, Atrix Wolfe wrote:

In windows XP, since microsoft wants to make directx seem fast and
OpenGL

seem slow, theya ctualy ship the operating system with OpenGL drivers
that

have been slowed down on purpose!

I am not a fan of MS, but unsubstantiated claims against them can do
harm
to the cause of Linux and other decent OSs. Is there proof that MS has
done
this with OpenGL? If so, where can I find it (URL or whatever reference)?

Thanks,
J


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

I really dont know what you are telling about. OpenGL is not a product
developed by MS. As I stated before they just bring a reference implementation
along. If you want the newest header files, download them from the OpenGL
website or from your hardware vendor homepage.

And what libs you are telling about? Because OpenGL is dynamically linked
you have to get the entry points into the shared lib (e.g. dll) by yourself or
use the default lib with standard bindings. Because at least OGL 1.1 is
present on nearly all plattforms you cannot link against a lib that needs entry
points from a shared lib of a later version. Your program would just crash. So
extensions were born. It is not a MS problem. Under linux you will have the
same problems. Thats the design of the OpenGL API.

Your answer just keeps the gap between MS and OpenSource advocates growing.
It really helps nobody.> since oGL 1.1 no newer header / libs we’re created by ms so you have to

use
those damn extension.

----- Original Message -----
From: “j_post” <j_post at pacbell.net>
To:
Sent: Monday, August 18, 2003 8:36 PM
Subject: Re: [SDL] SDL with Direct3D

On Monday 18 August 2003 09:31 am, Atrix Wolfe wrote:

In windows XP, since microsoft wants to make directx seem fast and
OpenGL

seem slow, theya ctualy ship the operating system with OpenGL drivers
that

have been slowed down on purpose!

I am not a fan of MS, but unsubstantiated claims against them can do
harm
to the cause of Linux and other decent OSs. Is there proof that MS has
done
this with OpenGL? If so, where can I find it (URL or whatever
reference)?

Thanks,
J


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test

  1. GMX TopMail - Platz 1 und Testsieger!
  2. GMX ProMail - Platz 2 und Preis-Qualit?tssieger!
  3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post

i know that openGL is not developed by ms.
i meant that the reference implementation, or however you call it, was never
updated beyond the 1.1 specification for windows.

but when oGl is dinamically linked, why do i have to compile opengl32.lib
with my project?

maybe i’m getting this wrong.> ----- Original Message -----

From: tahoma@gmx.de (Jan Becker)
To:
Sent: Tuesday, August 19, 2003 2:09 PM
Subject: Re: [SDL] SDL with Direct3D

I really dont know what you are telling about. OpenGL is not a product
developed by MS. As I stated before they just bring a reference
implementation
along. If you want the newest header files, download them from the OpenGL
website or from your hardware vendor homepage.

And what libs you are telling about? Because OpenGL is dynamically linked
you have to get the entry points into the shared lib (e.g. dll) by
yourself or
use the default lib with standard bindings. Because at least OGL 1.1 is
present on nearly all plattforms you cannot link against a lib that needs
entry
points from a shared lib of a later version. Your program would just
crash. So
extensions were born. It is not a MS problem. Under linux you will have
the
same problems. Thats the design of the OpenGL API.

Your answer just keeps the gap between MS and OpenSource advocates
growing.
It really helps nobody.

since oGL 1.1 no newer header / libs we’re created by ms so you have to
use
those damn extension.

----- Original Message -----
From: “j_post” <j_post at pacbell.net>
To:
Sent: Monday, August 18, 2003 8:36 PM
Subject: Re: [SDL] SDL with Direct3D

On Monday 18 August 2003 09:31 am, Atrix Wolfe wrote:

In windows XP, since microsoft wants to make directx seem fast and
OpenGL

seem slow, theya ctualy ship the operating system with OpenGL
drivers

that

have been slowed down on purpose!

I am not a fan of MS, but unsubstantiated claims against them can do
harm
to the cause of Linux and other decent OSs. Is there proof that MS has
done
this with OpenGL? If so, where can I find it (URL or whatever
reference)?

Thanks,
J


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test

  1. GMX TopMail - Platz 1 und Testsieger!
  2. GMX ProMail - Platz 2 und Preis-Qualit?tssieger!
  3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8.
    e-Post

SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Dynamically linking means you have a DLL. You can use LoadLibrary() to load the DLL, and extract each function pointer using GetProcAddress(). Alternatively, you can use code written by someone else which does exactly that, and exposes just the resulting function pointers. This code is usually distributed in the form of a (static) library, which is what you link against.

Lic. Gabriel Gambetta
ARTech - GeneXus Development Team
ggambett at artech.com.uy> ----- Original Message -----

From: Florian Hufsky [mailto:fhufsky@phorus.at]
Sent: Martes, 19 de Agosto de 2003 09:39 a.m.
To: sdl at libsdl.org
Subject: Re: [SDL] SDL with Direct3D

i know that openGL is not developed by ms.
i meant that the reference implementation, or however you call it, was never updated beyond the 1.1 specification for windows.

but when oGl is dinamically linked, why do i have to compile opengl32.lib with my project?

maybe i’m getting this wrong.

----- Original Message -----
From: tahoma@gmx.de (Jan Becker)
To:
Sent: Tuesday, August 19, 2003 2:09 PM
Subject: Re: [SDL] SDL with Direct3D

I really dont know what you are telling about. OpenGL is not a product
developed by MS. As I stated before they just bring a reference
implementation
along. If you want the newest header files, download them from the
OpenGL website or from your hardware vendor homepage.

And what libs you are telling about? Because OpenGL is dynamically
linked you have to get the entry points into the shared lib (e.g. dll)
by
yourself or
use the default lib with standard bindings. Because at least OGL 1.1
is present on nearly all plattforms you cannot link against a lib that
needs
entry
points from a shared lib of a later version. Your program would just
crash. So
extensions were born. It is not a MS problem. Under linux you will
have
the
same problems. Thats the design of the OpenGL API.

Your answer just keeps the gap between MS and OpenSource advocates
growing.
It really helps nobody.

since oGL 1.1 no newer header / libs we’re created by ms so you have
to use those damn extension.

----- Original Message -----
From: “j_post” <j_post at pacbell.net>
To:
Sent: Monday, August 18, 2003 8:36 PM
Subject: Re: [SDL] SDL with Direct3D

On Monday 18 August 2003 09:31 am, Atrix Wolfe wrote:

In windows XP, since microsoft wants to make directx seem fast
and
OpenGL

seem slow, theya ctualy ship the operating system with OpenGL
drivers

that

have been slowed down on purpose!

I am not a fan of MS, but unsubstantiated claims against them
can do
harm
to the cause of Linux and other decent OSs. Is there proof that MS
has
done
this with OpenGL? If so, where can I find it (URL or whatever
reference)?

Thanks,
J


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test

  1. GMX TopMail - Platz 1 und Testsieger!
  2. GMX ProMail - Platz 2 und Preis-Qualit?tssieger!
  3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8.
    e-Post

SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Please stop the OGL v.s. D3D thread.
ALakazam, see my previous message for information on getting the window handle.

Thanks,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Gabriel Gambetta wrote:

About the portability issue, I was going to write a Direct3D/OpenGL
abstraction layer and program everything on top of that. Because SDL
doesn’t support Direct3D, I’ll also have to rewrite most of the stuff
SDL is already doing for me when using it on top of OpenGL. So I
believe SDL + Direct3D is actually a useful combination.

I agree. Right now my 2D sidescroller project has two modes: 2D SDL and
SDL/OpenGL. I’d love to add SDL/Direct3D to that list so that Windows users
with broken OpenGL can get the benefits of 3D acceleration.–
Rainer Deyke - rainerd at eldwood.com - http://eldwood.com