mirror of
https://github.com/thes3m/XNI
synced 2024-12-26 13:26:06 +01:00
26 lines
659 B
Mathematica
26 lines
659 B
Mathematica
|
//
|
||
|
// VertexDeclarationReader.m
|
||
|
// XNI
|
||
|
//
|
||
|
// Created by Matej Jan on 29.11.10.
|
||
|
// Copyright 2010 Retronator. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "VertexDeclarationReader.h"
|
||
|
|
||
|
#import "Retronator.Xni.Framework.Content.h"
|
||
|
#import "Retronator.Xni.Framework.Graphics.h"
|
||
|
#import "Retronator.Xni.Framework.Content.Pipeline.Processors.h"
|
||
|
|
||
|
@implementation VertexDeclarationReader
|
||
|
|
||
|
- (id) readFromInput:(ContentReader *)input into:(id)existingInstance {
|
||
|
VertexDeclarationContent *content = input.content;
|
||
|
|
||
|
VertexDeclaration *vertexDeclaration = [[[VertexDeclaration alloc] initWithElements:content.vertexElements] autorelease];
|
||
|
|
||
|
return vertexDeclaration;
|
||
|
}
|
||
|
|
||
|
@end
|