mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2025-02-12 23:38:37 +00:00
O2GState helper methods
This commit is contained in:
parent
31c3129d21
commit
26e2436105
@ -53,6 +53,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
}
|
||||
|
||||
-initWithDeviceTransform:(O2AffineTransform)deviceTransform;
|
||||
-initFlippedWithDeviceHeight:(O2Float)height;
|
||||
-initFlippedWithDeviceHeight:(O2Float)height concat:(O2AffineTransform)concat;
|
||||
-init;
|
||||
|
||||
-(O2AffineTransform)userSpaceToDeviceSpaceTransform;
|
||||
|
@ -42,6 +42,18 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
return self;
|
||||
}
|
||||
|
||||
-initFlippedWithDeviceHeight:(O2Float)height {
|
||||
O2AffineTransform flip={1,0,0,-1,0,height};
|
||||
|
||||
return [self initWithDeviceTransform:flip];
|
||||
}
|
||||
|
||||
-initFlippedWithDeviceHeight:(O2Float)height concat:(O2AffineTransform)concat {
|
||||
O2AffineTransform flip={1,0,0,-1,0,height};
|
||||
|
||||
return [self initWithDeviceTransform:O2AffineTransformConcat(flip,concat)];
|
||||
}
|
||||
|
||||
-init {
|
||||
return [self initWithDeviceTransform:O2AffineTransformIdentity];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user