when you need to change the text of a textfield very often, and constantly creating new textures turns out to be too slow.when you need different fonts than those installed on the iPhone, or fonts with fancy effects.However, there are times where this method is not perfect, e.g.: The bitmap is then used as a texture, just like any other image.Ĭreating this texture is relatively fast, and once it is created, the textfield will be rendered very quickly - it’s just an image, after all. When you create a textfield in the way shown above, Sparrow asks Cocoa to render the text to a bitmap. Click on the following image to get a bigger view of the fonts and their names. There are quite a number of different fonts already available on the iPhone. vAlign = SPVAlignCenter // vertical alignment hAlign = SPHAlignCenter // horizontal alignment textField. Sparrow makes it easy to do so: SPTextField * textField = textField. Almost any game will have to display some text sooner or later.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |