Jump to content
  • Advertisement
Sign in to follow this  
Decrius

[solved] Copy buffer to texture with alpha channel

This topic is 3826 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, I copy the buffer to a texture each time a textarea is changed...I do this so I don't have to render TTF text each frame, but just copy the TTF text to a texture when its changed...then I can just display the texture which is much faster. I got it working, but I want the default background of the texture to be fully transparant, so when I would apply the texture I would only see the text, and not the ClearColor colour as background. Can this be done, or do we have a more elegant way of storing buffer information? PS: the text is drawn at final on a changable background...so I cannot store a background on the texture. EDIT: Using texturefonts now in FTGL :) [Edited by - Decrius on April 1, 2008 1:50:38 PM]

Share this post


Link to post
Share on other sites
Advertisement
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!