Archived

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

guy lateur

direct3d logo in ordinary window

Recommended Posts

Hi all, I''m relatively new to directx/windows programming (using xp, msvcpp6, dx90b), and I was wondering if anybody has any pointers (skeleton code, mnemonics, tutorials, ..) to displaying a directx canvas within (as part of) a regular application window. You know, like the kind you might get when setting the 3d properties of some graphic cards. Thing is, I regularly program some (simple, dedicated) applications and I''d like a kind of style/layout-template for them all. Semi-professional, I guess. As much as I would like to figure out how this can be done by trial and error, I find myself preoccupied by things like direct3d, -sound and -input at this time, so any tips would be greatly appreciated. Thanks! g PS: on a related node: you know those non-rectangular window borders (like in media player 9). Would it be possible to have the transparency of some parts (eg borders) of your window animated by directx? Just checking..

Share this post


Link to post
Share on other sites
You can render to an offscreen surface (texture) and then read back the data by locking the texture. Stuff it into a DIB, and blit to window. Not terribly efficient, but gets the job done (and is quite fast for small bitmaps).

Share this post


Link to post
Share on other sites