Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

happyname34

text in direct draw

This topic is 5550 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

okay, here''s the deal im writing a console in directdraw, and im using CreateSurfaceFromText to make a text surface for each line, which is created and destroyed everytime i have to update perhaps there is a more efficient way to do this? cuz this is killing my framerate. i took out the display of previously entered text, and it ran much faster... but then my console doesnt make sense. oh, another thing, after about 2 minutes of run time, my text surfaces turn to staticy blurred nothings... this is also a major problem. any help? suggestions? ideas? -jason

Share this post


Link to post
Share on other sites
Advertisement
okay. how do i blt part of a bitmap? such as a font bitmap and only taking one letter at a time... this would prove useful for sprites too. =D

this would be clipping right? how can i do that in directx8? do i have to go d3d to do so? excuse me for the newbness

[edited by - happyname34 on August 11, 2003 3:18:01 AM]

Share this post


Link to post
Share on other sites
No, actually it has nothing to do with clipping. When you call your blit function (I don''t remember exactly what it''s called in DirectDraw) you should be able to specify a SOURCE rectangle to copy the image FROM.

You don''t have to use D3D, but if you did you would use texture coordinates instead.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!