Jump to content
  • Advertisement
Sign in to follow this  
Decrius

[SDL] 'Merge' surfaces?

This topic is 3885 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

Hi, Is there a way in SDL that I can 'merge' multiple surfaces? The problem: I use SDL_ttf which draws each line of text every frame. The line drawing takes time. Therefore I want that its only calculated when its changed (a line is added). Is there a way that I can blit all those lines to another surface? This surface should be drawn each frame, which will limit the overhead my line drawing function (with additional features) causes. Can this be done? Quick example? Thank you :) Decrius

Share this post


Link to post
Share on other sites
Advertisement
WOW! From FPS 70-80 it went to 50,000 - 80,000 LOL

I must've forgotten the CreateSurface function before...

Thanks :)

[Edited by - Decrius on February 6, 2008 12:05:54 PM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!