Jump to content
  • Advertisement

Archived

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

Charleh

Console text

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

Whats the best way of storing console messages and such, I want to use a Quake/HL style console but I''m not sure the best way of storing the data - would a temporary file using fstreams be a good idea?

Share this post


Link to post
Share on other sites
Advertisement
A temporary file is probably not the best way to do that. My first thought would be a std::deque of std::string objects. Or if you have formatting information, a deque of structs containing the formatting information and the strings.

Share this post


Link to post
Share on other sites
Well I browsed the Quake src and it turns out that they just use a char to hold all the console information. So thats what I''ve done, works fine for what I need

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!