Sign in to follow this  

[SlimDX] Direct2D Interop

Recommended Posts

I've come up with a solution, but it's not ideal. I added the following code to SlimDX's SurfaceDxgi.cpp:

Surface^ Surface::FromComObject( ComObject^ object )
IDXGISurface* buffer;
RECORD_DXGI( object->UnknownPointer->QueryInterface(&buffer) );
if( Result::Last.IsSuccess )
return Surface::FromPointer( buffer );

throw gcnew DXGIException ( Result::Last );

Is there another way to accomplish this without modifying the library? Or is the functionality just plain missing from SlimDX?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this