84 |
return was; |
return was; |
85 |
} |
} |
86 |
|
|
87 |
|
public int distort(int into, float x, float y, float w, float h, float mag, float min) { |
88 |
|
|
89 |
|
floats[nfloats + 0] = x; |
90 |
|
floats[nfloats + 1] = y; |
91 |
|
floats[nfloats + 2] = (float)Math.log(mag); |
92 |
|
floats[nfloats + 3] = (float)Math.log(min); |
93 |
|
floats[nfloats + 4] = w; |
94 |
|
floats[nfloats + 5] = h; |
95 |
|
int paramInd = nfloats; |
96 |
|
nfloats += 6; |
97 |
|
|
98 |
|
inds[ninds + 0] = 3; // distort |
99 |
|
inds[ninds + 1] = into; |
100 |
|
inds[ninds + 2] = paramInd; |
101 |
|
|
102 |
|
int was = ninds / 3; |
103 |
|
ninds += 3; |
104 |
|
return was; |
105 |
|
} |
106 |
|
|
107 |
public void dump() { |
public void dump() { |
108 |
pa("GLVobCoorder: "); |
pa("GLVobCoorder: "); |
109 |
for(int i=0; i<ninds/3; i++) { |
for(int i=0; i<ninds/3; i++) { |