Archived

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

Ersvik

GDI

Recommended Posts


In earlier versions you would do something like this:

m_pDDSurface->GetDC(&hdc);
TextOut(hdc, x,y, szText, lstrlen(szText));
m_pDDSurface->ReleaseDC(hdc);

But I do not think that this is possible anymore under DX8...But I''m not 100% sure.....

Share this post


Link to post
Share on other sites
you still can.

make a surface first, or just get a buffer from the chain buffer ..

then you can getdc from it .. very very slow though..

i normally use GDI for fonts. since it saves me the time of making the fonts myself.



Its my duty, to please that booty ! - John Shaft

Share this post


Link to post
Share on other sites
You can, but it is highly recommended against. Long story short, mixing the two forces the device to stop, allow GDI stuff, and regroup. It can cause big performance issue.

What are you actually trying to do?

Share this post


Link to post
Share on other sites