🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

yay

posted in A Keyboard and the Truth for project 96 Mill
Published April 04, 2006
Advertisement
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 drawstext->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.
Previous Entry Bah.
Next Entry Documentation
0 likes 2 comments

Comments

Mushu
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.
April 04, 2006 10:02 AM
EDI
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.
April 04, 2006 10:15 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement