mirror of
https://github.com/thes3m/XNI
synced 2024-12-26 13:26:06 +01:00
47 lines
845 B
Objective-C
47 lines
845 B
Objective-C
//
|
|
// ModelBone.m
|
|
// XNI
|
|
//
|
|
// Created by Matej Jan on 29.11.10.
|
|
// Copyright 2010 Retronator. All rights reserved.
|
|
//
|
|
|
|
#import "ModelBone.h"
|
|
#import "ModelBone+Internal.h"
|
|
|
|
#import "Retronator.Xni.Framework.Graphics.h"
|
|
|
|
@implementation ModelBone
|
|
|
|
- (id) initWithChildren:(NSArray *)theChildren
|
|
index:(int)theIndex
|
|
name:(NSString *)theName
|
|
transform:(Matrix *)theTransform
|
|
{
|
|
self = [super init];
|
|
if (self != nil) {
|
|
children = [[ModelBoneCollection alloc] initWithItems:theChildren];
|
|
index = theIndex;
|
|
name = [theName retain];
|
|
transform = [theTransform retain];
|
|
}
|
|
return self;
|
|
}
|
|
|
|
@synthesize children, index, name, parent, transform;
|
|
|
|
- (void) setParent:(ModelBone*)theParent {
|
|
parent = theParent;
|
|
}
|
|
|
|
- (void) dealloc
|
|
{
|
|
[children release];
|
|
[name release];
|
|
[transform release];
|
|
[super dealloc];
|
|
}
|
|
|
|
|
|
@end
|