B
Bad_Kid
which is better for what?
Bad_Kid said:which is better for what?
Trevor said:Direct 3D is an object orientated 3d graphics library. OpenGL is a
structured ("C style") API. They both have their own pros and cons. Most
people will choose OpenGL because it is available on non-Microsoft
platforms. The other people will choose Direct X (Not just Direct3D)
because they are only interested in Windows and DirectX is a "gaming SDK"
(sound, video, input, etc...) where OpenGL is just a "graphics SDK".
DirectX is built upon COM and OpenGL is built upon plain old C code. Since
you are a C# developer you can get up and going with DirectX much quicker
than OpenGL. Microsoft has recently released a managed DirectX 9 which can
be used in C# without all of the COM interop stuff. AFAIK the only support
for OpenGL in C# is all third party and involves extensive use of P/Invoke
to call the OpenGL.dll API calls. I gave you all of the info I have on the
two technologies. Which one is better (for your needs) is up to you to
decide. You can search Google for more arguments like this - I'm sure you
aren't the first who tried to compare the two technologies.
structured ("C style") API. They both have their own pros and cons. Most
people will choose OpenGL because it is available on non-Microsoft
platforms. The other people will choose Direct X (Not just Direct3D)
because they are only interested in Windows and DirectX is a "gaming SDK"
(sound, video, input, etc...) where OpenGL is just a "graphics SDK".
DirectX is built upon COM and OpenGL is built upon plain old C code. Since
you are a C# developer you can get up and going with DirectX much quicker
than OpenGL. Microsoft has recently released a managed DirectX 9 which can
be used in C# without all of the COM interop stuff. AFAIK the only support
for OpenGL in C# is all third party and involves extensive use of P/Invoke
to call the OpenGL.dll API calls. I gave you all of the info I have on the
two technologies. Which one is better (for your needs) is up to you to
decide. You can search Google for more arguments like this - I'm sure you
aren't the first who tried to compare the two technologies.
Since when is DirectX not written in plain old C?
And do not forget that there is also a managed OpenGL for .NET.
cody said:Since when is DirectX not written in plain old C?
And do not forget that there is also a managed OpenGL for .NET.
I don't recall saying it wasn't written in plain C. It was probably written
with C++ & ATL.
I did not know this, thanks for the info. Is this a managed implementation
of OpenGL or simply a managed wrapper?
cody said:I don't recall saying it wasn't written in plain C. It was probably written
with C++ & ATL.
I did not know this, thanks for the info. Is this a managed implementation
of OpenGL or simply a managed wrapper?
A managed implementation? You are joking. A managed implementation of
DirectX/OpenGL would be painfully slow.
What you can use in .NET are managed wrappers that are available for DirectX
and OpenGL.
--
cody
[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
will see that I mentioned the C# OpenGL wrapper and I never said DirectX
wasn't written in C. Thanks. I'm done with this thread.
Trevor said:cody said:Since when is DirectX not written in plain old C?
I don't recall saying it wasn't written in plain C. It was probably written
with C++ & ATL.
And do not forget that there is also a managed OpenGL for .NET.
I did not know this, thanks for the info. Is this a managed implementation
of OpenGL or simply a managed wrapper?
A managed implementation? You are joking. A managed implementation of
DirectX/OpenGL would be painfully slow.
What you can use in .NET are managed wrappers that are available for DirectX
and OpenGL.
--
cody
[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
cody,
Do me a favor. Read over my original post. Read it again. OK, now you
will see that I mentioned the C# OpenGL wrapper and I never said DirectX
wasn't written in C. Thanks. I'm done with this thread.
cody said:"DirectX is built upon COM and OpenGL is built upon plain old C code"
This really implies that DirectX isn't written in C.