mirror of
https://github.com/thes3m/XNI
synced 2024-12-26 13:26:06 +01:00
32 lines
559 B
Objective-C
32 lines
559 B
Objective-C
//
|
|
// ShortIndexArray.m
|
|
// XNI
|
|
//
|
|
// Created by Matej Jan on 30.11.10.
|
|
// Copyright 2010 Retronator. All rights reserved.
|
|
//
|
|
|
|
#import "ShortIndexArray.h"
|
|
|
|
#import "Retronator.Xni.Framework.Graphics.h"
|
|
|
|
@implementation ShortIndexArray
|
|
|
|
|
|
- (id) initWithInitialCapacity:(int)initialCapacity {
|
|
self = [super initWithItemSize:sizeof(short) initialCapacity:initialCapacity];
|
|
if (self) {
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (IndexElementSize) indexElementSize {
|
|
return IndexElementSizeSixteenBits;
|
|
}
|
|
|
|
- (void) addIndex:(short)index {
|
|
[super addIndex:&index];
|
|
}
|
|
|
|
@end
|