mirror of
https://github.com/thes3m/XNI
synced 2024-12-26 13:26:06 +01:00
33 lines
678 B
Objective-C
33 lines
678 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;
|
|
NSDictionary *characterMap;
|
|
}
|
|
|
|
@property (nonatomic, readonly) NSSet *characters;
|
|
@property (nonatomic, retain) NSNumber *defaultCharacter;
|
|
@property (nonatomic) int lineSpacing;
|
|
@property (nonatomic) float spacing;
|
|
|
|
- (Vector2*) measureString:(NSString*)text;
|
|
|
|
@end
|