• 9
• 11
• 9
• 20
• 12
• entries
503
1888
• views
334538

# yay

87 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 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.

GIVE IN TO THE BOOST.

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.