116 |
|
|
117 |
// CS from virtualpaper to screen |
// CS from virtualpaper to screen |
118 |
final int paper2screen = glc.concat(framecenterCS, panZoom); |
final int paper2screen = glc.concat(framecenterCS, panZoom); |
119 |
|
vs.matcher.addSub(frameCS, paper2screen, "PAPER2S"); |
120 |
final int bg2screen = vs.scaleCS(paper2screen, "BGSCA", |
final int bg2screen = vs.scaleCS(paper2screen, "BGSCA", |
121 |
bgscale, bgscale); |
bgscale, bgscale); |
122 |
|
|
137 |
|
|
138 |
// Irregu needs frame 2 paper |
// Irregu needs frame 2 paper |
139 |
final int screen2paper = glc.invert(paper2screen); |
final int screen2paper = glc.invert(paper2screen); |
140 |
|
vs.matcher.addSub(paper2screen, screen2paper, "INVER2S"); |
141 |
final int frameUnit2paper = glc.concat(screen2paper, frameUnit); |
final int frameUnit2paper = glc.concat(screen2paper, frameUnit); |
142 |
|
vs.matcher.addSub(screen2paper, frameUnit2paper, "f2pap"); |
143 |
|
|
144 |
class Putter implements Runnable { |
class Putter implements Runnable { |
145 |
Vob v; |
Vob v; |
201 |
final int frameCS = vs.orthoBoxCS(buoycs, "frame", 0, |
final int frameCS = vs.orthoBoxCS(buoycs, "frame", 0, |
202 |
-buoyVPWidth/2, -buoyVPHeight, 1, 1, |
-buoyVPWidth/2, -buoyVPHeight, 1, 1, |
203 |
buoyVPWidth, buoyVPHeight); |
buoyVPWidth, buoyVPHeight); |
204 |
|
vs.activate(frameCS); |
205 |
// XXX Pan |
// XXX Pan |
206 |
final int c2fCS = vs.coords.ortho(0, 0, 0, 0, buoyZoom, buoyZoom); |
final int c2fCS = vs.coords.ortho(0, 0, 0, 0, buoyZoom, buoyZoom); |
207 |
vs.matcher.addSub(buoycs, c2fCS, "C2F"); |
vs.matcher.addSub(buoycs, c2fCS, "C2F"); |
255 |
int frameCS = vs.orthoBoxCS(mainctr, "frame", 10, |
int frameCS = vs.orthoBoxCS(mainctr, "frame", 10, |
256 |
(-mainWidth)/2, -mainHeight/2, 1, 1, |
(-mainWidth)/2, -mainHeight/2, 1, 1, |
257 |
mainWidth, mainHeight); |
mainWidth, mainHeight); |
258 |
|
vs.activate(frameCS); |
259 |
|
|
260 |
int c2fCS = vs.coords.ortho(0, 0, 0, 0, 10, 10); |
int c2fCS = vs.coords.ortho(0, 0, 0, 0, 10, 10); |
261 |
vs.matcher.addSub(mainctr, c2fCS, "C2F"); |
vs.matcher.addSub(mainctr, c2fCS, "C2F"); |