78 |
floats[ind + 6] = y_y; |
floats[ind + 6] = y_y; |
79 |
} |
} |
80 |
|
|
81 |
public int rotateXY(int into, float degrees) { |
public int rotate(int into, float degrees) { |
|
floats[nfloats + 0] = degrees; |
|
82 |
int paramInd = nfloats; |
int paramInd = nfloats; |
83 |
nfloats += 1; |
nfloats += 1; |
84 |
|
|
88 |
int was = ninds; |
int was = ninds; |
89 |
ninds += 3; |
ninds += 3; |
90 |
|
|
91 |
|
setRotateParams(into, degrees); |
92 |
|
|
93 |
return was; |
return was; |
94 |
} |
} |
95 |
|
|
96 |
|
public void setRotateParams(int cs, float degrees) { |
97 |
|
int ind = inds[cs + 2]; |
98 |
|
floats[ind + 0] = degrees; |
99 |
|
} |
100 |
|
|
101 |
|
|
102 |
public int rotateXYZ(int into, float degrees, float x, float y, float z) { |
public int rotateXYZ(int into, float degrees, float x, float y, float z) { |
103 |
floats[nfloats + 0] = x; |
floats[nfloats + 0] = x; |
104 |
floats[nfloats + 1] = y; |
floats[nfloats + 1] = y; |
171 |
|
|
172 |
|
|
173 |
|
|
174 |
public int scaleXYZ(int into, float sx, float sy, float sz) { |
public int scale(int into, float sx, float sy, float sz) { |
|
floats[nfloats + 0] = sx; |
|
|
floats[nfloats + 1] = sy; |
|
|
floats[nfloats + 2] = sz; |
|
175 |
int paramInd = nfloats; |
int paramInd = nfloats; |
176 |
nfloats += 3; |
nfloats += 3; |
177 |
|
|
181 |
int was = ninds; |
int was = ninds; |
182 |
ninds += 3; |
ninds += 3; |
183 |
|
|
184 |
|
setScaleParams(into, sx, sy, sz); |
185 |
|
|
186 |
return was; |
return was; |
187 |
} |
} |
188 |
|
|
189 |
|
public void setScaleParams(int cs, float sx, float sy, float sz) { |
190 |
|
int ind = inds[cs + 2]; |
191 |
|
floats[ind + 0] = sx; |
192 |
|
floats[ind + 1] = sy; |
193 |
|
floats[ind + 2] = sz; |
194 |
|
} |
195 |
|
|
196 |
|
|
197 |
|
|
198 |
|
|
199 |
public int distort(int into, float x, float y, float w, float h, float mag, float min) { |
public int distort(int into, float x, float y, float w, float h, float mag, float min) { |