|
-
Jul 28th, 2002, 05:04 PM
#1
Thread Starter
Hyperactive Member
writing text with directx
I am trying to draw text to a secondary surface used for blitting, using the surface.DrawText function. I have set up my font properly, that all works... However, regardless of what I set my x and y values to, the text gets drawn at 0,0.
Anyone know what's wrong?
Code:
Dim FontInfo As New StdFont
backbuffer.SetFontTransparency True
backbuffer.SetForeColor vbBlue
FontInfo.Bold = True
FontInfo.size = 12
FontInfo.name = "Verdana"
backbuffer.SetFont FontInfo
backbuffer.DrawText X, Y, "Test", True
-
Jul 29th, 2002, 07:55 AM
#2
Addicted Member
Try This....
VB Code:
backbuffer.DrawText X, Y, "Test", False
-
Jul 29th, 2002, 10:52 AM
#3
Thread Starter
Hyperactive Member
Oh yea, that works! What exactly is that parameter? It is called "b", so I just assumed it means bold or something like that...
-
Jul 30th, 2002, 08:04 AM
#4
Addicted Member
I don't know exactly what it is used for. It's rather anoying
-
Aug 1st, 2002, 03:17 AM
#5
Fanatic Member
Its actually a place holder for future implemenations (i think), so if you put anything other than 0 (or false) in there, you will only get the error E_NOTIMPL (Not Implemented) or something like that.. dont kno why, but since directx is something thats ever changing and ever evolving, i dont kno why they keep making such crazy changes every time they come out with a new one either!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|