1
0
mirror of https://github.com/thes3m/XNI synced 2024-12-26 13:26:06 +01:00
XNI/Classes/Retronator/Xni/Framework/Graphics/XniSamplerEventArgs.m
Samo Pajk 0b5b46e937 Changes:
- optimization for allocations
- fixed sprite font default character that was not taken into consideration

git-svn-id: http://xni.googlecode.com/svn/XNI@122 ac433895-eea3-a490-d80a-17149a75e588
2012-10-15 15:01:36 +00:00

36 lines
659 B
Objective-C

//
// SamplerEvent.m
// XNI
//
// Created by Matej Jan on 26.10.10.
// Copyright 2010 Retronator. All rights reserved.
//
#import "XniSamplerEventArgs.h"
#import "XniSamplerEventArgs+Internal.h"
@interface XniSamplerEventArgs ()
@property (nonatomic, readwrite) int samplerIndex;
@end
@implementation XniSamplerEventArgs
- (id) initWithSamplerIndex:(int)theSamplerIndex
{
self = [super init];
if (self != nil) {
samplerIndex = theSamplerIndex;
}
return self;
}
+ (id) eventArgsWithSamplerIndex:(int)theSamplerIndex {
return [[[XniSamplerEventArgs alloc] initWithSamplerIndex:theSamplerIndex] autorelease];
}
@synthesize samplerIndex;
@end