mirror of
https://github.com/thes3m/XNI
synced 2024-12-26 13:26:06 +01:00
- added render to texture features (RenderTarget2D) - optimized SpriteFont for faster access and allocations - fixed iOS6 bug witch prevented proper device orientation - fixed some problems when handling touch events git-svn-id: http://xni.googlecode.com/svn/XNI@112 ac433895-eea3-a490-d80a-17149a75e588
34 lines
713 B
Objective-C
34 lines
713 B
Objective-C
//
|
|
// SpriteFont.h
|
|
// XNI
|
|
//
|
|
// Created by Matej Jan on 20.12.10.
|
|
// Copyright 2010 Retronator. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "Retronator.Xni.Framework.classes.h"
|
|
#import "Retronator.Xni.Framework.Graphics.classes.h"
|
|
|
|
@interface SpriteFont : NSObject {
|
|
NSSet *characters;
|
|
NSNumber *defaultCharacter;
|
|
int lineSpacing;
|
|
float spacing;
|
|
|
|
@private
|
|
Texture2D *texture;
|
|
Rectangle *characterMap[128];
|
|
NSDictionary *characterMapD;
|
|
}
|
|
|
|
@property (nonatomic, readonly) NSSet *characters;
|
|
@property (nonatomic, retain) NSNumber *defaultCharacter;
|
|
@property (nonatomic) int lineSpacing;
|
|
@property (nonatomic) float spacing;
|
|
|
|
- (Vector2*) measureString:(NSString*)text;
|
|
|
|
@end
|