1
0
mirror of https://github.com/thes3m/XNI synced 2024-12-26 13:26:06 +01:00
Matej Jan d5b2897d8b Added 3D Model support.
git-svn-id: http://xni.googlecode.com/svn/XNI@42 ac433895-eea3-a490-d80a-17149a75e588
2010-11-30 23:26:03 +00:00

31 lines
751 B
Objective-C

//
// IndexBuffer.h
// XNI
//
// Created by Matej Jan on 21.9.10.
// Copyright 2010 Retronator. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "GraphicsResource.h"
@interface IndexBuffer : GraphicsResource {
uint bufferID;
BufferUsage bufferUsage;
int indexCount;
IndexElementSize indexElementSize;
}
- (id) initWithGraphicsDevice:(GraphicsDevice *)theGraphicsDevice
indexElementSize:(IndexElementSize)theIndexElementSize
indexCount:(int)theIndexCount
usage:(BufferUsage)theBufferUsage;
@property (nonatomic, readonly) BufferUsage bufferUsage;
@property (nonatomic, readonly) int indexCount;
@property (nonatomic, readonly) IndexElementSize indexElementSize;
- (void) setData:(IndexArray*)data;
@end