write a text
how to write a text inside a fullscreen application...i''m using directX8a and i want to write something in my game not just only view the text
Um, wierdly phrased question, but if you just want to print some text you have to use the windows GDI (well, you don''t have to, but it''s the simplest way, as far as I know). You can use the normal TextOut() function, but first you must get a device context... something like:
Hope that''s what you meant
.
Insomnia
|
Hope that''s what you meant
![](tongue.gif)
Insomnia
Insomnia
I''m quite certain that''s what he meant.
Just a small comment though. Seeing as MS redesigned the whole DDraw/D3D stuff in DX8, you''d actually think that they''d have a reasonable font engine built in... or do they?
![](smile.gif)
==========================================In a team, you either lead, follow or GET OUT OF THE WAY.
Version 8.0 has the IDirect3DFont8 interface. I don''t use it (yet) so I don''t know of what quality it is.
look at starcraft...it has a screen that allow users to input their name or ID....what i meant was i want to write some text in my application....does anyone know how to code it....i know how to code to put out text in application using GetDC....
Are you refering to the GUI? How to display text that the user types in?
If so, there''s a series of articles on this site that will give you some insight on this.
HTH,
David [] Loeser
If so, there''s a series of articles on this site that will give you some insight on this.
HTH,
David [] Loeser
Dave Dak Lozar Loeser
"Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning."--anonymous
"Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning."--anonymous
i''m not sure if i get what you''re saying but here''s what i would do.
create something visually so the user knows where to start typing. once u detect the user click the box, set that box to active.
then just create a char array.
each time the user enters a char, then concatenate it to the array, if it''s a backspace, then remove the last char.
and just display the char array each frame. u mite want to add a flashing ''_'' or ''|'' at the end of the array to have a cool effect.
thuned
life is unfair, take advantage of it.
UNMB2 - if the link doesn''t work, try clicking it
create something visually so the user knows where to start typing. once u detect the user click the box, set that box to active.
then just create a char array.
each time the user enters a char, then concatenate it to the array, if it''s a backspace, then remove the last char.
and just display the char array each frame. u mite want to add a flashing ''_'' or ''|'' at the end of the array to have a cool effect.
thuned
life is unfair, take advantage of it.
UNMB2 - if the link doesn''t work, try clicking it
![](smile.gif)
life is unfair, take advantage of it.UNMB2 - if the link doesn't work, try clicking it :)
that''s what you want, rite? just a text box?
heh, can''t believe u can do it so easily using java. it''s like 2 lines and it''ll auto detect if it''s active or not.
thuned
life is unfair, take advantage of it.
UNMB2 - if the link doesn''t work, try clicking it
heh, can''t believe u can do it so easily using java. it''s like 2 lines and it''ll auto detect if it''s active or not.
thuned
life is unfair, take advantage of it.
UNMB2 - if the link doesn''t work, try clicking it
![](smile.gif)
life is unfair, take advantage of it.UNMB2 - if the link doesn't work, try clicking it :)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement