Villacaleb / slimdx

Automatically exported from code.google.com/p/slimdx
MIT License
0 stars 0 forks source link

Color4 dependency on WinForms #683

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
SlimDX February 2010.

The type Color4 has a dependency on WinForms in one of its constructor 
overloads. There should not be a dependency on WinForms as SlimDX can be used 
in WPF among other situations that do not involve WinForms.

On a related note, it also appears that Color3 is simply missing a lot of 
functionality that Color4 has. Kind of odd.

Original issue reported on code.google.com by jorgy...@hotmail.com on 5 Jun 2010 at 3:23

GoogleCodeExporter commented 9 years ago
Quick comment/edit. The dependency is System.Drawing; System.Drawing is 
considered to 
be a part of WinForms.

Original comment by jorgy...@hotmail.com on 5 Jun 2010 at 3:26

GoogleCodeExporter commented 9 years ago
This was by design. The dependency on Windows Forms pervades SlimDX under the 
hood as
well, as it's the most direct way to access most of the underlying Windows API
functionality required. We won't remove it for v1. It's under consideration for
removal in v2, although chances aren't good since it would involve writing a
Windows-Forms-like wrapper ourselves to access various useful bits 
functionality we
depend on.

Windows Forms can be used regardless of whether or not WPF is used; they do not
interfere, so this isn't considered a problem.

Original comment by josh.petrie on 7 Jun 2010 at 3:06