Texture2D(Text) Class Reference

#import <Texture2D.h>

List of all members.

Public Member Functions

(id) - initWithString:dimensions:alignment:fontName:fontSize:
(id) - initWithString:fontName:fontSize:


Detailed Description

Extensions to make it easy to create a Texture2D object from a string of text. Note that the generated textures are of type A8 - use the blending mode (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA).

Member Function Documentation

- (id) initWithString: (NSString *)  string
dimensions: (CGSize)  dimensions
alignment: (UITextAlignment)  alignment
fontName: (NSString *)  name
fontSize: (CGFloat)  size 

Initializes a texture from a string with dimensions, alignment, font name and font size

- (id) initWithString: (NSString *)  string
fontName: (NSString *)  name
fontSize: (CGFloat)  size 

Initializes a texture from a string with font name and font size


The documentation for this class was generated from the following file:

Generated on Tue Jun 9 10:39:45 2009 for cocos2d for iPhone 0.7.3 by  doxygen 1.5.8