DirectDraw DrawText
hey, what''s the DrawText function of DD, like what''s the parameters so i can use it, i forgot hehe
ok if you are not going of making fun of the person who anser you, there is the answer:
DirectDrawSurface7.DrawText
The DirectDrawSurface7.DrawText method draws text on the surface.
object.DrawText( _
x As Long, _
y As Long, _
text As String, _
b As Boolean)
Parameters
object
Object expression that resolves to a DirectDrawSurface7 object.
x, y
Location on the surface to draw text.
text
Text to display.
b
Boolean value indicating whether to draw to the current cursor position. See Remarks.
Error Codes
If the method fails, it raises an error, and Err.Number is set.
Remarks
To append text to the end of the last call to DirectDrawSurface7.DrawText, pass 0,0 as the x- and y-coordinates, and declare b as True. If you declare b as False, calling this method causes text to be displayed at the specified x- and y-coordinates.
i took that in the help of the sdk of dx7, then look there if you have it before asking question in the future, and, this is a function that is only implemented in visual basic, by the way, it uses the GDI to draw on a surface, if you want to do that in VC++, you have to do it manually!
cyberg
DirectDrawSurface7.DrawText
The DirectDrawSurface7.DrawText method draws text on the surface.
object.DrawText( _
x As Long, _
y As Long, _
text As String, _
b As Boolean)
Parameters
object
Object expression that resolves to a DirectDrawSurface7 object.
x, y
Location on the surface to draw text.
text
Text to display.
b
Boolean value indicating whether to draw to the current cursor position. See Remarks.
Error Codes
If the method fails, it raises an error, and Err.Number is set.
Remarks
To append text to the end of the last call to DirectDrawSurface7.DrawText, pass 0,0 as the x- and y-coordinates, and declare b as True. If you declare b as False, calling this method causes text to be displayed at the specified x- and y-coordinates.
i took that in the help of the sdk of dx7, then look there if you have it before asking question in the future, and, this is a function that is only implemented in visual basic, by the way, it uses the GDI to draw on a surface, if you want to do that in VC++, you have to do it manually!
cyberg
cyberg- cyberg_coder@hotmail.com- http://members.xoom.com/cybergsoft
DirectDraw''s DrawText only works in VB.
The road to success is always under construction
The road to success is always under construction
Goblineye EntertainmentThe road to success is always under construction
In C you have no DrawText function, but you could use the function : ID3DXContext::DrawDebugText; But this function just calls the GDI Text Output function, so that''s not the way to go. You''ll have to write your own text function(if you want to render text and not just debug output)or wait until DX8(hopefully they will have a running text function implemented then).
Yoshi
Yoshi
The last truth is that there is no magic(Feist)
Just draw the bitmapped text to the surface using the normal DDraw methods...
-Chris Bennett ("Insanity" of Dwarfsoft)
Check our site:
http://www.crosswinds.net/~dwarfsoft/
Check out our NPC AI Mailing List :
http://www.egroups.com/group/NPCAI/
made due to popular demand here at GDNet :)
-Chris Bennett ("Insanity" of Dwarfsoft)
Check our site:
http://www.crosswinds.net/~dwarfsoft/
Check out our NPC AI Mailing List :
http://www.egroups.com/group/NPCAI/
made due to popular demand here at GDNet :)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement