| Mirage Source http://www.miragesource.net/forums/ |
|
| DirectX8 Font Outline http://www.miragesource.net/forums/viewtopic.php?f=201&t=4186 |
Page 1 of 1 |
| Author: | JokeofWeek [ Thu Aug 21, 2008 5:09 am ] |
| Post subject: | DirectX8 Font Outline |
So I've succeeded in converting my source to DirectX 8 Code: Public Sub DrawText(ByVal X, ByVal Y, ByVal Text As String)
TextRect.Top = Y TextRect.Left = X TextRect.bottom = Y + 32 TextRect.Right = X + (Len(Text) * FONT_SIZE) D3DX.DrawText MainFont, &HFFFFFFFF, Text, TextRect, DT_LEFT End Sub |
|
| Author: | Robin [ Thu Aug 21, 2008 12:41 pm ] |
| Post subject: | Re: DirectX8 Font Outline |
DrawText, drawing just 8 lines of chat, in my Dx8 engine caused a drop of about 50fps. -shudder- |
|
| Author: | GIAKEN [ Thu Aug 21, 2008 7:20 pm ] |
| Post subject: | Re: DirectX8 Font Outline |
Use the API. |
|
| Author: | JokeofWeek [ Fri Aug 22, 2008 2:27 am ] |
| Post subject: | Re: DirectX8 Font Outline |
GIAKEN wrote: Use the API. The one the current MS uses? I don't think so :S Might as well stick all to DirectX 8 functions , I've heard that GDI functions don't go too good with DX functions, and the point of converting to DX 8 is for optimization and better rendering features, so that would ruin the point no? |
|
| Author: | GIAKEN [ Fri Aug 22, 2008 3:38 am ] |
| Post subject: | Re: DirectX8 Font Outline |
No because DX is good with everything except text from what I've read. |
|
| Author: | Robin [ Fri Aug 22, 2008 7:32 am ] |
| Post subject: | Re: DirectX8 Font Outline |
Just use textures. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|