Archived

This topic is now archived and is closed to further replies.

thy MC

Drawing texture on HWND

Recommended Posts

I''m writing editor for my future game and need an easy way to preview currently selected texture. Engine will support DirectX and OpenGL(if needed) but currently Im working on D3D part. Since performance is not main concern in editor any simple way would matter. /me using D3DX8.0 sdk. thanks for answers

Share this post


Link to post
Share on other sites
To have it in a separate window (HWND) use CreateAdditionalSwapChain() to create a new swap chain for that window.

To have it in your main D3D window (picture-in-picture/minimap style) just apply it to a polygon or look at SetViewport().

--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites
Thanks I know how to make it in main window since it''s not very different from any textured triangle.

I meant way of presenting into HWND without using anymore resources from 3d card, since it is not worth it for editor. Performance is not key issue here.

Share this post


Link to post
Share on other sites