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.....
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
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
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?
What are you actually trying to do?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement