fna-workbench

fna-workbench Commit Details


Date:2016-03-13 09:23:05 (8 years 9 months ago)
Author:Ethan Lee
Branch:master
Commit:1371b205a50b310af4ff30aeb14d0214891be054
Parents: 1bf3f96715c82c04c83b6d699a44362e9ac07abd
Message:2x2 matrix parameters (thanks Evan!)

Changes:

File differences

src/Graphics/Effect/EffectParameter.cs
914914
915915
916916
917
918
919
920
921
922
923
917924
918925
919926
......
10051012
10061013
10071014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
10081025
10091026
10101027
......
10831100
10841101
10851102
1103
1104
1105
1106
1107
1108
1109
10861110
10871111
10881112
......
11741198
11751199
11761200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
11771211
11781212
11791213
dstPtr[10] = value.M33;
dstPtr[11] = value.M34;
}
else if (ColumnCount == 2 && RowCount == 2)
{
dstPtr[0] = value.M11;
dstPtr[1] = value.M12;
dstPtr[2] = value.M21;
dstPtr[3] = value.M22;
}
else
{
throw new NotImplementedException(
dstPtr[curOffset++] = value[i].M34;
}
}
else if (ColumnCount == 2 && RowCount == 2)
{
for (int i = 0; i < value.Length; i += 1)
{
dstPtr[curOffset++] = value[i].M11;
dstPtr[curOffset++] = value[i].M12;
dstPtr[curOffset++] = value[i].M21;
dstPtr[curOffset++] = value[i].M22;
}
}
else
{
throw new NotImplementedException(
dstPtr[10] = value.M24;
dstPtr[11] = value.M34;
}
else if (ColumnCount == 2 && RowCount == 2)
{
dstPtr[0] = value.M11;
dstPtr[1] = value.M21;
dstPtr[2] = value.M12;
dstPtr[3] = value.M22;
}
else
{
throw new NotImplementedException(
dstPtr[curOffset++] = value[i].M34;
}
}
else if (ColumnCount == 2 && RowCount == 2)
{
for (int i = 0; i < value.Length; i += 1)
{
dstPtr[curOffset++] = value[i].M11;
dstPtr[curOffset++] = value[i].M21;
dstPtr[curOffset++] = value[i].M12;
dstPtr[curOffset++] = value[i].M22;
}
}
else
{
throw new NotImplementedException(

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05577s using 13 queries.