Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DirectX8 Font Outline
#1
So I've succeeded in converting my source to DirectX 8 Big Grin Now I am trying to figure out how to outline a font. I am currently using the DrawText method included in the d3dx8 object. Any pointers? Big Grin This is my sub I use for drawing text. I know, pretty shabby, but it's what I am using for now :

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
Reply
#2
DrawText, drawing just 8 lines of chat, in my Dx8 engine caused a drop of about 50fps.

-shudder-
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#3
Use the API.
Reply
#4
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?
Reply
#5
No because DX is good with everything except text from what I've read.
Reply
#6
Just use textures.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)