473,713 Members | 2,494 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

directx or opengl

I am writing an application in C# which need to plot graphs and simple
shapes (polygons, circles, squares etc). Which library is better for this
purpose and why? Thanks.
Feb 11 '06 #1
14 2653

"Jessica Weiner" <je*****@gmail. com> wrote in message
news:VC******** ***********@new ssvr29.news.pro digy.net...
I am writing an application in C# which need to plot graphs and simple
shapes (polygons, circles, squares etc). Which library is better for this
purpose and why? Thanks.
Should add GDI+ to the mix.

It depends if you want a retained-mode or direct-mode system, what sort of
transformations you want to do, types of texturing, transformations ,
hardware acceleration support, printing support, exporting support, etc.
You should also look a pre-made controls for the graphs/plots (some great
stuff out there) or if you need to roll your own, a retained-mode vector
library over GDI+.


Feb 12 '06 #2
Sorry, because this is not the answer you expect, but why don't you try with
GDI+?
You will probably find there everything you need...

Cheers,

Michel.
"Jessica Weiner" <je*****@gmail. com> a écrit dans le message de news:
VC************* ******@newssvr2 9.news.prodigy. net...
I am writing an application in C# which need to plot graphs and simple
shapes (polygons, circles, squares etc). Which library is better for this
purpose and why? Thanks.

Feb 13 '06 #3

"Jessica Weiner" <je*****@gmail. com> wrote in message
news:VC******** ***********@new ssvr29.news.pro digy.net...
|I am writing an application in C# which need to plot graphs and simple
| shapes (polygons, circles, squares etc). Which library is better for this
| purpose and why? Thanks.
|
|

System.Drawing and System.Drawing. Drawing2D do contain the classes that wrap
GDI++ and are in general all you need to draw simple shapes.
Willy.
Feb 13 '06 #4
For the purpose of planning ahead, I would use DirectX, if it was a choice
between the 2. DirectX is going to be part of the foundation of Windows
Presentation Services in Windows Vista.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in message
news:ec******** *****@TK2MSFTNG P15.phx.gbl...

"Jessica Weiner" <je*****@gmail. com> wrote in message
news:VC******** ***********@new ssvr29.news.pro digy.net...
|I am writing an application in C# which need to plot graphs and simple
| shapes (polygons, circles, squares etc). Which library is better for
this
| purpose and why? Thanks.
|
|

System.Drawing and System.Drawing. Drawing2D do contain the classes that
wrap
GDI++ and are in general all you need to draw simple shapes.
Willy.

Feb 13 '06 #5
You are gonna use the WMP classes and/or XAML for this do you, DirectX is
not the API to use from WPF.

Willy.

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:eQ******** ******@TK2MSFTN GP09.phx.gbl...
| For the purpose of planning ahead, I would use DirectX, if it was a choice
| between the 2. DirectX is going to be part of the foundation of Windows
| Presentation Services in Windows Vista.
|
| --
| HTH,
|
| Kevin Spencer
| Microsoft MVP
| .Net Developer
| We got a sick zebra a hat,
| you ultimate tuna.
|
|
| "Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in message
| news:ec******** *****@TK2MSFTNG P15.phx.gbl...
| >
| > "Jessica Weiner" <je*****@gmail. com> wrote in message
| > news:VC******** ***********@new ssvr29.news.pro digy.net...
| > |I am writing an application in C# which need to plot graphs and simple
| > | shapes (polygons, circles, squares etc). Which library is better for
| > this
| > | purpose and why? Thanks.
| > |
| > |
| >
| > System.Drawing and System.Drawing. Drawing2D do contain the classes that
| > wrap
| > GDI++ and are in general all you need to draw simple shapes.
| >
| >
| > Willy.
| >
| >
|
|
Feb 13 '06 #6
> You are gonna use the WMP classes and/or XAML for this do you, DirectX is
not the API to use from WPF.
First of all, XAML is a presentation language. See
http://windowssdk.msdn.microsoft.com...40017c22e4.asp

You don't write graphics programming code with it. See
http://windowssdk.msdn.microsoft.com...asp?frame=true.

Direct3D is the graphics "layer" for Windows Vista. See
http://msdn.microsoft.com/windowsvista/experience/

To quote:

"A new graphics driver model has been introduced with Windows Vista that is
stable and secure; it has built-in fault tolerance to enable constant use of
the graphics processor unit (GPU) for the rich graphics sported by the
operating system and the applications. The GPU memory manager and scheduler
in this driver model enable multiple graphics applications to use the GPU to
run simultaneously.
Windows Graphics Foundation 2.0 (WGF), also known as Direct3D10, sits on top
of, but is distinct from, the new driver model. Applications can use this
application programming interface (API) for compelling next-generation
cinematographic visuals as well as taking advantage of the massive
computational horsepower available on the GPU for more general purpose
applications that are easily parallelized (termed GPGPU). An example of such
use is image processing."
And WMP is an acronym for "Windows Media Player," which has nothing to do
this topic.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.

"Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. You are gonna use the WMP classes and/or XAML for this do you, DirectX is
not the API to use from WPF.

Willy.

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:eQ******** ******@TK2MSFTN GP09.phx.gbl...
| For the purpose of planning ahead, I would use DirectX, if it was a
choice
| between the 2. DirectX is going to be part of the foundation of Windows
| Presentation Services in Windows Vista.
|
| --
| HTH,
|
| Kevin Spencer
| Microsoft MVP
| .Net Developer
| We got a sick zebra a hat,
| you ultimate tuna.
|
|
| "Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in message
| news:ec******** *****@TK2MSFTNG P15.phx.gbl...
| >
| > "Jessica Weiner" <je*****@gmail. com> wrote in message
| > news:VC******** ***********@new ssvr29.news.pro digy.net...
| > |I am writing an application in C# which need to plot graphs and
simple
| > | shapes (polygons, circles, squares etc). Which library is better for
| > this
| > | purpose and why? Thanks.
| > |
| > |
| >
| > System.Drawing and System.Drawing. Drawing2D do contain the classes
that
| > wrap
| > GDI++ and are in general all you need to draw simple shapes.
| >
| >
| > Willy.
| >
| >
|
|

Feb 13 '06 #7
1. You aren't supposed to program against DirectX on Vista (at least not in
managed code, which is what this NG is about, right?), you are gonna use
WinFX and the WPF framework classes which are a managed layer on top of
DirectX on XP or on top of a new graphics engine WGF, costing of Direct3D10
and the new hardware accelerated Graphics drivers on Vista.
Watch this...
http://windowssdk.msdn.microsoft.com...1b26f7d901.asp

2.XAML is a new XML-based declarative programming language with the
potential to create UI without the need for code, and the potential of
drawing 2D shapes without code, which was the OP's request. <snip from the
URL you posted...
XAML enables you to create a UI without using code. You can create quite
elaborate documents or pages entirely in markup using controls, text,
images, shapes and so forth.
/snip>

3.
| You don't write graphics programming code with it. See ..
http://windowssdk.msdn.microsoft.com...asp?frame=true.

This page refers to the "unmanaged DirectX" interfaces available on Vista.
This is the API used by applications written in 'native' C++ code, are Vista
only API's and must run on hardware that implements the Windows Vista WDDM
(new driver model for hardware accelerated Graphical devices).

and ....
| And WMP is an acronym for "Windows Media Player," which has nothing to do
| this topic.

was a typo, sorry.

Willy.

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
|> You are gonna use the WMP classes and/or XAML for this do you, DirectX is
| > not the API to use from WPF.
|
| First of all, XAML is a presentation language. See
|
http://windowssdk.msdn.microsoft.com...40017c22e4.asp
|
| You don't write graphics programming code with it. See
|
http://windowssdk.msdn.microsoft.com...asp?frame=true.
|
| Direct3D is the graphics "layer" for Windows Vista. See
| http://msdn.microsoft.com/windowsvista/experience/
|
| To quote:
|
| "A new graphics driver model has been introduced with Windows Vista that
is
| stable and secure; it has built-in fault tolerance to enable constant use
of
| the graphics processor unit (GPU) for the rich graphics sported by the
| operating system and the applications. The GPU memory manager and
scheduler
| in this driver model enable multiple graphics applications to use the GPU
to
| run simultaneously.
| Windows Graphics Foundation 2.0 (WGF), also known as Direct3D10, sits on
top
| of, but is distinct from, the new driver model. Applications can use this
| application programming interface (API) for compelling next-generation
| cinematographic visuals as well as taking advantage of the massive
| computational horsepower available on the GPU for more general purpose
| applications that are easily parallelized (termed GPGPU). An example of
such
| use is image processing."
|
|
| And WMP is an acronym for "Windows Media Player," which has nothing to do
| this topic.
|
| --
| HTH,
|
| Kevin Spencer
| Microsoft MVP
| .Net Developer
| We got a sick zebra a hat,
| you ultimate tuna.
|
|
|
| "Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in message
| news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
| > You are gonna use the WMP classes and/or XAML for this do you, DirectX
is
| > not the API to use from WPF.
| >
| > Willy.
| >
| >
| >
| > "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
| > news:eQ******** ******@TK2MSFTN GP09.phx.gbl...
| > | For the purpose of planning ahead, I would use DirectX, if it was a
| > choice
| > | between the 2. DirectX is going to be part of the foundation of
Windows
| > | Presentation Services in Windows Vista.
| > |
| > | --
| > | HTH,
| > |
| > | Kevin Spencer
| > | Microsoft MVP
| > | .Net Developer
| > | We got a sick zebra a hat,
| > | you ultimate tuna.
| > |
| > |
| > | "Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in message
| > | news:ec******** *****@TK2MSFTNG P15.phx.gbl...
| > | >
| > | > "Jessica Weiner" <je*****@gmail. com> wrote in message
| > | > news:VC******** ***********@new ssvr29.news.pro digy.net...
| > | > |I am writing an application in C# which need to plot graphs and
| > simple
| > | > | shapes (polygons, circles, squares etc). Which library is better
for
| > | > this
| > | > | purpose and why? Thanks.
| > | > |
| > | > |
| > | >
| > | > System.Drawing and System.Drawing. Drawing2D do contain the classes
| > that
| > | > wrap
| > | > GDI++ and are in general all you need to draw simple shapes.
| > | >
| > | >
| > | > Willy.
| > | >
| > | >
| > |
| > |
| >
| >
|
|
Feb 13 '06 #8
Hi Willy,
1. You aren't supposed to program against DirectX on Vista (at least not
in
managed code, which is what this NG is about, right?), you are gonna use
WinFX and the WPF framework classes which are a managed layer on top of
DirectX on XP or on top of a new graphics engine WGF, costing of
Direct3D10
and the new hardware accelerated Graphics drivers on Vista.
Watch this...
http://windowssdk.msdn.microsoft.com...1b26f7d901.asp
First of all, the documentation you referred to was about a very limited set
of UI graphics, not all graphics, which includes 3D drawing. That particular
reference was to UI Controls only. In other words, there is a very limited
set of (UI only) drawing you can do with this particular set of tools, which
is UI-specific. To give you an example from the current platform, you can
create a form and you can override the Paint event to draw in 2 Dimensions
on a Control. However, you cannot draw a 3D game interface on a Control
using GDI+ or System.Drawing. Graphics. For that, you have to use DirectX.

These UI classes run on top of DirectX. They are not DirectX, but you can
certainly draw using DirectX "directly." And, if you recall from my original
reply, I recommended DirectX *over OpenGL*, since in Vista, OpenGL is likely
to sit on top of DirectX as well, and therefore, not perform quite as well.
That I can't be sure of, but that is how I'd bet.

As for DirectX being managed, I've been working with Managed Direct3D for
almost 2 years now. No, the most current release of the DirectX SDK does not
contain a Managed DirectX library for Windows Vista. But it's coming, and
when Vista is released, it will be here.
2.XAML is a new XML-based declarative programming language with the
potential to create UI without the need for code, and the potential of
drawing 2D shapes without code, which was the OP's request. <snip from the
URL you posted...
XAML enables you to create a UI without using code. You can create quite
elaborate documents or pages entirely in markup using controls, text,
images, shapes and so forth.
Again, you're talking about UI only. If you limit yourself to a discussion
of what to use to draw UI, you eliminate both DirectX and OpenGL from the
conversation, regardless of whether you're discussing the current or next
version of Windows. And again, I was answering the question which is the
title of this thread "directx or opengl." I was specifically addressing this
question, not the question of whether either of the 2 technologies was the
best choice for doing simple graphics. This is exactly what I said: "For the
purpose of planning ahead, I would use DirectX, *if it was a choice between
the 2*." Obviously, neither is necessary for simple graphics. And UI-level
classes will suffice for that purpose.
3.
| You don't write graphics programming code with it. See ..
http://windowssdk.msdn.microsoft.com...asp?frame=true.

This page refers to the "unmanaged DirectX" interfaces available on Vista.
This is the API used by applications written in 'native' C++ code, are
Vista
only API's and must run on hardware that implements the Windows Vista WDDM
(new driver model for hardware accelerated Graphical devices).
*I* do 3D graphics programming with Managed Direct3D. And I have every
expectation that it will be available on Windows Vista, regardless of the
fact that it hasn't been pre-released for it yet. Updates for managed
DirectX come out every couple of months. And it's not going away.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. 1. You aren't supposed to program against DirectX on Vista (at least not
in
managed code, which is what this NG is about, right?), you are gonna use
WinFX and the WPF framework classes which are a managed layer on top of
DirectX on XP or on top of a new graphics engine WGF, costing of
Direct3D10
and the new hardware accelerated Graphics drivers on Vista.
Watch this...
http://windowssdk.msdn.microsoft.com...1b26f7d901.asp

2.XAML is a new XML-based declarative programming language with the
potential to create UI without the need for code, and the potential of
drawing 2D shapes without code, which was the OP's request. <snip from the
URL you posted...
XAML enables you to create a UI without using code. You can create quite
elaborate documents or pages entirely in markup using controls, text,
images, shapes and so forth.
/snip>

3.
| You don't write graphics programming code with it. See ..
http://windowssdk.msdn.microsoft.com...asp?frame=true.

This page refers to the "unmanaged DirectX" interfaces available on Vista.
This is the API used by applications written in 'native' C++ code, are
Vista
only API's and must run on hardware that implements the Windows Vista WDDM
(new driver model for hardware accelerated Graphical devices).

and ....
| And WMP is an acronym for "Windows Media Player," which has nothing to
do
| this topic.

was a typo, sorry.

Willy.

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
|> You are gonna use the WMP classes and/or XAML for this do you, DirectX
is
| > not the API to use from WPF.
|
| First of all, XAML is a presentation language. See
|
http://windowssdk.msdn.microsoft.com...40017c22e4.asp
|
| You don't write graphics programming code with it. See
|
http://windowssdk.msdn.microsoft.com...asp?frame=true.
|
| Direct3D is the graphics "layer" for Windows Vista. See
| http://msdn.microsoft.com/windowsvista/experience/
|
| To quote:
|
| "A new graphics driver model has been introduced with Windows Vista that
is
| stable and secure; it has built-in fault tolerance to enable constant
use
of
| the graphics processor unit (GPU) for the rich graphics sported by the
| operating system and the applications. The GPU memory manager and
scheduler
| in this driver model enable multiple graphics applications to use the
GPU
to
| run simultaneously.
| Windows Graphics Foundation 2.0 (WGF), also known as Direct3D10, sits on
top
| of, but is distinct from, the new driver model. Applications can use
this
| application programming interface (API) for compelling next-generation
| cinematographic visuals as well as taking advantage of the massive
| computational horsepower available on the GPU for more general purpose
| applications that are easily parallelized (termed GPGPU). An example of
such
| use is image processing."
|
|
| And WMP is an acronym for "Windows Media Player," which has nothing to
do
| this topic.
|
| --
| HTH,
|
| Kevin Spencer
| Microsoft MVP
| .Net Developer
| We got a sick zebra a hat,
| you ultimate tuna.
|
|
|
| "Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in message
| news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
| > You are gonna use the WMP classes and/or XAML for this do you, DirectX
is
| > not the API to use from WPF.
| >
| > Willy.
| >
| >
| >
| > "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
| > news:eQ******** ******@TK2MSFTN GP09.phx.gbl...
| > | For the purpose of planning ahead, I would use DirectX, if it was a
| > choice
| > | between the 2. DirectX is going to be part of the foundation of
Windows
| > | Presentation Services in Windows Vista.
| > |
| > | --
| > | HTH,
| > |
| > | Kevin Spencer
| > | Microsoft MVP
| > | .Net Developer
| > | We got a sick zebra a hat,
| > | you ultimate tuna.
| > |
| > |
| > | "Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in
message
| > | news:ec******** *****@TK2MSFTNG P15.phx.gbl...
| > | >
| > | > "Jessica Weiner" <je*****@gmail. com> wrote in message
| > | > news:VC******** ***********@new ssvr29.news.pro digy.net...
| > | > |I am writing an application in C# which need to plot graphs and
| > simple
| > | > | shapes (polygons, circles, squares etc). Which library is better
for
| > | > this
| > | > | purpose and why? Thanks.
| > | > |
| > | > |
| > | >
| > | > System.Drawing and System.Drawing. Drawing2D do contain the classes
| > that
| > | > wrap
| > | > GDI++ and are in general all you need to draw simple shapes.
| > | >
| > | >
| > | > Willy.
| > | >
| > | >
| > |
| > |
| >
| >
|
|

Feb 13 '06 #9
See inline

Willy.

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:eG******** ********@TK2MSF TNGP15.phx.gbl. ..
| Hi Willy,
|
| > 1. You aren't supposed to program against DirectX on Vista (at least not
| > in
| > managed code, which is what this NG is about, right?), you are gonna use
| > WinFX and the WPF framework classes which are a managed layer on top of
| > DirectX on XP or on top of a new graphics engine WGF, costing of
| > Direct3D10
| > and the new hardware accelerated Graphics drivers on Vista.
| > Watch this...
| >
http://windowssdk.msdn.microsoft.com...1b26f7d901.asp
|
| First of all, the documentation you referred to was about a very limited
set
| of UI graphics, not all graphics, which includes 3D drawing. That
particular
| reference was to UI Controls only. In other words, there is a very limited
| set of (UI only) drawing you can do with this particular set of tools,
which
| is UI-specific. To give you an example from the current platform, you can
| create a form and you can override the Paint event to draw in 2 Dimensions
| on a Control. However, you cannot draw a 3D game interface on a Control
| using GDI+ or System.Drawing. Graphics. For that, you have to use DirectX.
|

Sorry, but you should read the OP's question first.

<snip
I am writing an application in C# which need to plot graphs and simple
shapes (polygons, circles, squares etc). Which library is better for this
purpose and why? Thanks.
/snip>

See, the question is about simple shapes, you don't need DirectX for this
point.
Then you suggested to use DirectX because it would be part of WPF on Vista,
And I say you don't need to go down that level to draw simple or even
complex shapes on Vista, just use the WPF classes they wrap 2D/3D complex
drawing using the WPF engine (called the Desktop Window Manager (DWM), which
uses only uses DirectX for rendering).
| These UI classes run on top of DirectX.

No, they are drawing classes in the System.Windows. Media and the
System.Windows. Media.Media3D namespaces, they run on top of DWM, they are
extremely powerfull/functional.
Please don't confuse WPF drawing/rendering with DirectX, both serve
different purposes, they run in different airspaces (just like native
Win32/GDI), both share the same DirectX rendering engine and the VDDM (Vista
Display Driver Model), while Win32/GDI uses the GDI rendering engine like on
all other Windows platforms.

They are not DirectX, but you can
| certainly draw using DirectX "directly." And, if you recall from my
original
| reply, I recommended DirectX *over OpenGL*, since in Vista, OpenGL is
likely
| to sit on top of DirectX as well, and therefore, not perform quite as
well.
| That I can't be sure of, but that is how I'd bet.
|
| As for DirectX being managed, I've been working with Managed Direct3D for
| almost 2 years now. No, the most current release of the DirectX SDK does
not
| contain a Managed DirectX library for Windows Vista. But it's coming, and
| when Vista is released, it will be here.
|

It does, it's called DirectX3D10! But you need Vista class driver and
hardware accelerated GPU's (actually, some limitted support ) to use them.
And I use them since a couple of months since I'm on the beta team for
Vista.
| > 2.XAML is a new XML-based declarative programming language with the
| > potential to create UI without the need for code, and the potential of
| > drawing 2D shapes without code, which was the OP's request. <snip from
the
| > URL you posted...
| > XAML enables you to create a UI without using code. You can create quite
| > elaborate documents or pages entirely in markup using controls, text,
| > images, shapes and so forth.
|
| Again, you're talking about UI only. If you limit yourself to a discussion
| of what to use to draw UI, you eliminate both DirectX and OpenGL from the
| conversation, regardless of whether you're discussing the current or next
| version of Windows.
No, I don't eliminate DirectX from the discussion, I just said you don't
need it to draw simple/shapes shapes and graphs on the current platform, and
certainly not on Vista, I don't want to push the OP towards something he/she
doesn't need.
And again, I was answering the question which is the
| title of this thread "directx or opengl." I was specifically addressing
this
| question, not the question of whether either of the 2 technologies was the
| best choice for doing simple graphics. This is exactly what I said: "For
the
| purpose of planning ahead, I would use DirectX, *if it was a choice
between
| the 2*." Obviously, neither is necessary for simple graphics. And UI-level
| classes will suffice for that purpose.
|
| > 3.
| > | You don't write graphics programming code with it. See ..
| >
http://windowssdk.msdn.microsoft.com...asp?frame=true.
| >
| > This page refers to the "unmanaged DirectX" interfaces available on
Vista.
| > This is the API used by applications written in 'native' C++ code, are
| > Vista
| > only API's and must run on hardware that implements the Windows Vista
WDDM
| > (new driver model for hardware accelerated Graphical devices).
|
| *I* do 3D graphics programming with Managed Direct3D. And I have every
| expectation that it will be available on Windows Vista, regardless of the
| fact that it hasn't been pre-released for it yet. Updates for managed
| DirectX come out every couple of months. And it's not going away.
|

See above native Direct3D10 is in the latest SDK (beta), but no (publicly
available) managed framework exists for it (yet).
| --
| HTH,
|
| Kevin Spencer
| Microsoft MVP
| .Net Developer
| We got a sick zebra a hat,
| you ultimate tuna.
|
|
| "Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in message
| news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
| > 1. You aren't supposed to program against DirectX on Vista (at least not
| > in
| > managed code, which is what this NG is about, right?), you are gonna use
| > WinFX and the WPF framework classes which are a managed layer on top of
| > DirectX on XP or on top of a new graphics engine WGF, costing of
| > Direct3D10
| > and the new hardware accelerated Graphics drivers on Vista.
| > Watch this...
| >
http://windowssdk.msdn.microsoft.com...1b26f7d901.asp
| >
| > 2.XAML is a new XML-based declarative programming language with the
| > potential to create UI without the need for code, and the potential of
| > drawing 2D shapes without code, which was the OP's request. <snip from
the
| > URL you posted...
| > XAML enables you to create a UI without using code. You can create quite
| > elaborate documents or pages entirely in markup using controls, text,
| > images, shapes and so forth.
| > /snip>
| >
| > 3.
| > | You don't write graphics programming code with it. See ..
| >
http://windowssdk.msdn.microsoft.com...asp?frame=true.
| >
| > This page refers to the "unmanaged DirectX" interfaces available on
Vista.
| > This is the API used by applications written in 'native' C++ code, are
| > Vista
| > only API's and must run on hardware that implements the Windows Vista
WDDM
| > (new driver model for hardware accelerated Graphical devices).
| >
| > and ....
| > | And WMP is an acronym for "Windows Media Player," which has nothing to
| > do
| > | this topic.
| >
| > was a typo, sorry.
| >
| > Willy.
| >
| >
| >
| > "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
| > news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
| > |> You are gonna use the WMP classes and/or XAML for this do you,
DirectX
| > is
| > | > not the API to use from WPF.
| > |
| > | First of all, XAML is a presentation language. See
| > |
| >
http://windowssdk.msdn.microsoft.com...40017c22e4.asp
| > |
| > | You don't write graphics programming code with it. See
| > |
| >
http://windowssdk.msdn.microsoft.com...asp?frame=true.
| > |
| > | Direct3D is the graphics "layer" for Windows Vista. See
| > | http://msdn.microsoft.com/windowsvista/experience/
| > |
| > | To quote:
| > |
| > | "A new graphics driver model has been introduced with Windows Vista
that
| > is
| > | stable and secure; it has built-in fault tolerance to enable constant
| > use
| > of
| > | the graphics processor unit (GPU) for the rich graphics sported by the
| > | operating system and the applications. The GPU memory manager and
| > scheduler
| > | in this driver model enable multiple graphics applications to use the
| > GPU
| > to
| > | run simultaneously.
| > | Windows Graphics Foundation 2.0 (WGF), also known as Direct3D10, sits
on
| > top
| > | of, but is distinct from, the new driver model. Applications can use
| > this
| > | application programming interface (API) for compelling next-generation
| > | cinematographic visuals as well as taking advantage of the massive
| > | computational horsepower available on the GPU for more general purpose
| > | applications that are easily parallelized (termed GPGPU). An example
of
| > such
| > | use is image processing."
| > |
| > |
| > | And WMP is an acronym for "Windows Media Player," which has nothing to
| > do
| > | this topic.
| > |
| > | --
| > | HTH,
| > |
| > | Kevin Spencer
| > | Microsoft MVP
| > | .Net Developer
| > | We got a sick zebra a hat,
| > | you ultimate tuna.
| > |
| > |
| > |
| > | "Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in message
| > | news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
| > | > You are gonna use the WMP classes and/or XAML for this do you,
DirectX
| > is
| > | > not the API to use from WPF.
| > | >
| > | > Willy.
| > | >
| > | >
| > | >
| > | > "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
| > | > news:eQ******** ******@TK2MSFTN GP09.phx.gbl...
| > | > | For the purpose of planning ahead, I would use DirectX, if it was
a
| > | > choice
| > | > | between the 2. DirectX is going to be part of the foundation of
| > Windows
| > | > | Presentation Services in Windows Vista.
| > | > |
| > | > | --
| > | > | HTH,
| > | > |
| > | > | Kevin Spencer
| > | > | Microsoft MVP
| > | > | .Net Developer
| > | > | We got a sick zebra a hat,
| > | > | you ultimate tuna.
| > | > |
| > | > |
| > | > | "Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in
| > message
| > | > | news:ec******** *****@TK2MSFTNG P15.phx.gbl...
| > | > | >
| > | > | > "Jessica Weiner" <je*****@gmail. com> wrote in message
| > | > | > news:VC******** ***********@new ssvr29.news.pro digy.net...
| > | > | > |I am writing an application in C# which need to plot graphs and
| > | > simple
| > | > | > | shapes (polygons, circles, squares etc). Which library is
better
| > for
| > | > | > this
| > | > | > | purpose and why? Thanks.
| > | > | > |
| > | > | > |
| > | > | >
| > | > | > System.Drawing and System.Drawing. Drawing2D do contain the
classes
| > | > that
| > | > | > wrap
| > | > | > GDI++ and are in general all you need to draw simple shapes.
| > | > | >
| > | > | >
| > | > | > Willy.
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
Feb 13 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
3193
by: Rick Muller | last post by:
I have a problem that I would like to get some advice on from other Pythonistas. I currently manage a (soon to be) open source project for displaying molecular graphics for a variety of different programs. To do this I need to draw pictures of the molecules, typically using OpenGL, and do some basic control, using some widget set. The code currently uses GTK, and runs on Macintosh OS X under Fink, and Linux. I would like to support the...
1
2035
by: Aaron Lovi | last post by:
Hi, I'm a noob trying to use managed DirectX (VC# 2003, DX9.0 Apr 2005 SDK). I used to use OpenGL with QT and VC++6.0, but I was a relative newcomer to that as well. When I used OpenGL, my understanding was that if you used display lists, your vertices would normally be held in memory on the video card. Now, with managed DirectX, I am looking at code that looks like this:
15
4537
by: oracle411 | last post by:
Hi I'm new to OpenGL, but have an OpenGL application written in CPP that I would like to display on a web browser. Was wondering how this could be done? Thank you very much
0
2941
by: Harvey Cohen | last post by:
Hello all, I have some C# code that implements calls to DirectX.DirectSound. It compiles under both VS .NET 2003 and VS 2005 and runs under VS .NET 2003 and VS 2005 on a Compaq laptop (Windows XP Home), a Dell Xeon workstation (Windows XP Pro) and a Gateway GM 825 (Windows XP Media Center). It also runs on the Dell and the Compaq under VS 2005, but when I attempt to run the code under VS 2005 on the Gateway (Windows XP MCE), I get...
0
1576
by: n_g | last post by:
how do i popup a message when user is running other fullscreen application? eg: i want to display phone number in corner of screen even user is playing fullscreen directx/opengl game or watching DVDs in fullscreen mode i use directdraw overly but it seems cannot work when other fullscreen directx app is running. the overlay sample code : http://www.gamedev.net/community/forums/topic.asp?topic_id=367591
3
9988
by: jg.campbell.ng | last post by:
I'm beginning learning Python and OpenGL in Python. Python fine. But difficulties with OpenGL; presumably with the installation of OpenGL. OS = Linux FC5. Python program gl_test.py: from OpenGL.GLUT import *
2
5096
by: smalltownworld | last post by:
Anyone got an idea of capturing a screen without api and or opengl/directx? Was thinking about reading from primary display driver memory but not sure if it can be parsed into an image . . . Any thoughts?
9
7505
by: Achim Domma | last post by:
Hi, I'm developing a GUI app in Python/C++ to visualize numerical results. Currently I'm using Python 2.4 with wx and PyOpenGLContext, but there are no windows binaries for Python 2.5 for quite some time now. I need a OpenGL context without restrictions and some settings dialogs. Is wx + PyOpenGL the way to go? Or could somebody recommend a better set of tools/libs?
11
3463
by: raylopez99 | last post by:
I just downloaded the apparently free SDK for DirectX 9, all 200+ MB of it, but as I read about WPF I wonder: is DirectX obsolete? Should I even bother learning how to use it? After all, the end user must have the DirectX library installed on their PC before they can use any video playing program you write. Does WPF even use DirectX? Or are the functions of DirectX (mostly video and graphics stuff, possibly accelerated via software...
0
8795
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9306
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9168
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9068
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6621
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4462
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4715
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3155
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.