Add support for linear and swizzle transforms. Fixes issue 4.

This commit is contained in:
castano
2008-05-06 23:21:39 +00:00
parent 94c3fa75a8
commit 48f61dbfc0
5 changed files with 68 additions and 6 deletions

View File

@ -316,10 +316,10 @@ void InputOptions::setSwizzleTransform(int x, int y, int z, int w)
nvCheck(z >= 0 && z < 3);
nvCheck(w >= 0 && w < 3);
// m.xswizzle = x;
// m.yswizzle = y;
// m.zswizzle = z;
// m.wswizzle = w;
m.swizzleTransform[0] = x;
m.swizzleTransform[1] = y;
m.swizzleTransform[2] = z;
m.swizzleTransform[3] = w;
}
void InputOptions::setMaxExtents(int e)