@implementation ICIndexBuffer

+ (id)indexBufferWithIndices:(const void *)indices
                       count:(GLuint)count
                      stride:(GLuint)stride
                       usage:(GLenum)usage
{
    return [[[[self class] alloc] initWithIndices:indices
                                            count:count
                                           stride:stride
                                            usage:usage] autorelease];
}

- (id)initWithIndices:(const void *)indices
                count:(GLuint)count
               stride:(GLuint)stride
                usage:(GLenum)usage
{
    return [super initWithTarget:GL_ELEMENT_ARRAY_BUFFER
                            data:indices
                           count:count
                          stride:stride
                           usage:usage];
}

- (void)dealloc
{
    [super dealloc];
}

@end
