[Bug 36499] New: Small .NET based Direct2D example app needs ID2D1Factory::CreateHwndRenderTarget implementation

wine-bugs at winehq.org wine-bugs at winehq.org
Tue May 20 15:34:24 CDT 2014


https://bugs.winehq.org/show_bug.cgi?id=36499

            Bug ID: 36499
           Summary: Small .NET based Direct2D example app needs
                    ID2D1Factory::CreateHwndRenderTarget implementation
           Product: Wine
           Version: 1.7.19
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: -unknown
          Assignee: wine-bugs at winehq.org
          Reporter: focht at gmx.net

Hello folks,

since Henri is working on adding Direct2D support to Wine I thought it might be
useful to collect (example) apps to target method stubs.

One can find many Direct2D examples on MSDN - unfortunately they are only
provided in source, to be compiled with Platform/DirectX SDK/Visual Studio.

I found some small precompiled Direct2D "tutorial" apps.

Example here:
http://www.rolandk.de/index.php?option=com_content&view=category&id=15:direct2dwrite

Prerequisite: 'winetricks -q dotnet20'.

The example makes use of 'SlimDX' Framework/library which provides a managed
wrapper around Microsoft DirectX.

--- snip ---
$ WINEDEBUG=+tid,+seh,+loaddll wine ./Articles.Tutorials.Direct2D.exe
...
002a:trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\d2d1.dll"
at 0x7dcf0000: builtin
002a:fixme:d2d:d2d_factory_init Ignoring factory type and options.
002a:fixme:d2d:d2d_factory_CreateHwndRenderTarget iface 0x1b3720, desc
0x33e390, hwnd_rt_desc 0x33e380, render_target 0x33e368 stub!
....
SlimDX.Direct2D.Direct2DException: E_NOTIMPL: The function called is not
supported at this time (-2147467263)
   at SlimDX.Result.Throw[T](Object dataKey, Object dataValue)
   at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey, Object
dataValue)
   at SlimDX.Result.Record[T](Int32 hr, Object dataKey, Object dataValue)
   at SlimDX.Direct2D.WindowRenderTarget.Init(Factory factory,
RenderTargetProperties renderTargetProperties, WindowRenderTargetProperties
windowRenderTargetProperties)
   at SlimDX.Direct2D.WindowRenderTarget..ctor(Factory factory,
WindowRenderTargetProperties windowRenderTargetProperties)
   at Articles.Tutorials.Direct2D.Chapter1.InitializeGraphics()
   at Articles.Tutorials.Direct2D.Chapter1.OnHandleCreated(EventArgs e)
   at System.Windows.Forms.Control.WmCreate(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.UserControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)
...
--- snip ---

$ sha1sum Articles.Tutorials.Direct2D.zip 
9e29ae58cd2f684c909a0ab714e2097fe497c8c9  Articles.Tutorials.Direct2D.zip

$ du -sh Articles.Tutorials.Direct2D.zip 
2.0M    Articles.Tutorials.Direct2D.zip

$ wine --version
wine-1.7.19-47-g704d169

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list