升级obi
This commit is contained in:
@@ -6,11 +6,18 @@ namespace Obi
|
||||
[Serializable]
|
||||
public class ObiNativeMatrix4x4List : ObiNativeList<Matrix4x4>
|
||||
{
|
||||
public ObiNativeMatrix4x4List() { } // TODO: WTF???? why does this prevent a crash?
|
||||
public ObiNativeMatrix4x4List(int capacity = 8, int alignment = 16) : base(capacity, alignment)
|
||||
{
|
||||
for (int i = 0; i < capacity; ++i)
|
||||
this[i] = Matrix4x4.identity;
|
||||
}
|
||||
|
||||
public ObiNativeMatrix4x4List(int capacity, int alignment, Matrix4x4 defaultValue) : base(capacity, alignment)
|
||||
{
|
||||
for (int i = 0; i < capacity; ++i)
|
||||
this[i] = defaultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user