mirror of
https://github.com/thes3m/XNI
synced 2024-12-26 13:26:06 +01:00
Finished sprite batch.
git-svn-id: http://xni.googlecode.com/svn/XNI@30 ac433895-eea3-a490-d80a-17149a75e588
This commit is contained in:
parent
b865142ef2
commit
89fc5c565a
@ -20,6 +20,7 @@
|
||||
+ (Matrix*) matrixWithStruct: (MatrixStruct*)matrixData;
|
||||
+ (Matrix*) matrixWithMatrix: (Matrix*)matrix;
|
||||
|
||||
+ (Matrix*) createTranslationX:(float)xPosition y:(float)yPosition z:(float)zPosition;
|
||||
+ (Matrix*) createTranslation:(Vector3*)position;
|
||||
+ (Matrix*) createScaleUniform:(float)scale;
|
||||
+ (Matrix*) createScale:(Vector3*)scales;
|
||||
|
@ -31,6 +31,14 @@
|
||||
return [[[Matrix alloc] initWithMatrix:matrix] autorelease];
|
||||
}
|
||||
|
||||
+ (Matrix*) createTranslationX:(float)xPosition y:(float)yPosition z:(float)zPosition {
|
||||
Matrix *matrix = [Matrix identity];
|
||||
matrix.data->m41 = xPosition;
|
||||
matrix.data->m42 = yPosition;
|
||||
matrix.data->m43 = zPosition;
|
||||
return matrix;
|
||||
}
|
||||
|
||||
+ (Matrix*) createTranslation:(Vector3*)position {
|
||||
Matrix *matrix = [Matrix identity];
|
||||
matrix.translation = position;
|
||||
|
Loading…
x
Reference in New Issue
Block a user