1
0
mirror of https://github.com/thes3m/XNI synced 2024-12-26 13:26:06 +01:00
XNI/Classes/Retronator/Xni/Framework/Graphics/SamplerStateCollection.m
Matej Jan 668bba9869 Added user primitive rendering.
git-svn-id: http://xni.googlecode.com/svn/XNI@23 ac433895-eea3-a490-d80a-17149a75e588
2010-09-21 21:46:53 +00:00

47 lines
815 B
Objective-C

//
// SamplerStateCollection.m
// XNI
//
// Created by Matej Jan on 21.9.10.
// Copyright 2010 Retronator. All rights reserved.
//
#import "SamplerStateCollection.h"
#import "Retronator.Xni.Framework.Graphics.h"
@implementation SamplerStateCollection
- (id) init
{
self = [super init];
if (self != nil) {
collection = [[NSMutableArray alloc] init];
}
return self;
}
- (int) count {
return [collection count];
}
- (SamplerState*)objectAtIndex:(NSUInteger)index {
return (SamplerState*)[collection objectAtIndex:index];
}
- (void)addObject:(SamplerState*)anObject {
[collection addObject:anObject];
}
- (void)insertObject:(SamplerState*)anObject atIndex:(NSUInteger)index {
[collection insertObject:anObject atIndex:index];
}
- (void) dealloc
{
[collection dealloc];
[super dealloc];
}
@end