Jump to content
  • entries
    503
  • comments
    1888
  • views
    335286

yay

Sign in to follow this  
EDI

112 views

so last night i wrote my Text class, which works very well.

goes a little somthing like:


SharedPtr text=SharedPtr(new Text(texFile,widthsFile,shader));

text->begin();

text->draw("Hello World!",x,y,w,h,size,color,flags);
...more draws

text->end();





So each text object acts as a specific font renderer, as you can see a shader is passed to it which means a custom shader can be written to allow for neato-effects.

no pics yet, i want to make the font i'm gonna be using in-game first.
Sign in to follow this  


2 Comments


Recommended Comments

Please, please, please tell me that your SharedPtr is a typedef of boost::shared_ptr or something. Please, please, please tell me you didn't write your own implementation when there's an already working on in Boost...

GIVE IN TO THE BOOST.

Share this comment


Link to comment
SharedPtr is a typedef of boost::shared_ptr

=D

just like WeakPtr =)

SharedPtr better adheres to my classnames =)

boost is my friend, we'll be using it for serialization as well.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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!