2 |
|
|
3 |
from gzz.vob import * |
from gzz.vob import * |
4 |
from java.awt import Color |
from java.awt import Color |
5 |
|
import java |
6 |
from gzz.gfx.gl import GL, GLRen, GLCache, PaperMill |
from gzz.gfx.gl import GL, GLRen, GLCache, PaperMill |
7 |
|
|
8 |
from test.tools.gfx import * |
from test.tools.gfx import * |
36 |
p1 = PaperMill.getInstance().getPaper(i) |
p1 = PaperMill.getInstance().getPaper(i) |
37 |
p2 = PaperMill.getInstance().getOptimizedPaper(i, win) |
p2 = PaperMill.getInstance().getOptimizedPaper(i, win) |
38 |
|
|
39 |
|
java.lang.Thread.sleep(3000) |
40 |
|
|
41 |
pq1 = GLRen.createPaperQuad(p1, 0, 0, 1, 1, 1) |
pq1 = GLRen.createPaperQuad(p1, 0, 0, 1, 1, 1) |
42 |
pq2 = GLRen.createPaperQuad(p2, 0, 0, 1, 1, 1) |
pq2 = GLRen.createPaperQuad(p2, 0, 0, 1, 1, 1) |
43 |
|
|
48 |
vs.put(pq2, 0, 150, 0, 150, 300) |
vs.put(pq2, 0, 150, 0, 150, 300) |
49 |
|
|
50 |
render(vs) |
render(vs) |
51 |
|
java.lang.Thread.sleep(4000) |
52 |
|
|
53 |
for x, y, w, h in [ |
if 0: |
54 |
|
for x, y, w, h in [ |
55 |
(10, 10, 5, 5), |
(10, 10, 5, 5), |
56 |
(50, 20, 10, 5), |
(50, 20, 10, 5), |
57 |
(100, 200, 10, 30), |
(100, 200, 10, 30), |