77 |
} |
} |
78 |
|
|
79 |
static HashMap papers = new HashMap(); |
static HashMap papers = new HashMap(); |
80 |
|
static GZZGL.DisplayList list; |
81 |
|
static Vob triangle; |
82 |
|
|
83 |
GZZGL.PaperQuad getPaperQuad(Cell c) { |
GZZGL.PaperQuad getPaperQuad(Cell c) { |
84 |
GZZGL.PaperQuad ret = (GZZGL.PaperQuad)papers.get(c); |
GZZGL.PaperQuad ret = (GZZGL.PaperQuad)papers.get(c); |
88 |
pap = PaperMill.getInstance().getPaper(c.hashCode()); |
pap = PaperMill.getInstance().getPaper(c.hashCode()); |
89 |
ret = GZZGL.createPaperQuad(pap, -1, -1, 1, 1); |
ret = GZZGL.createPaperQuad(pap, -1, -1, 1, 1); |
90 |
papers.put(c, ret); |
papers.put(c, ret); |
91 |
|
|
92 |
|
list = GZZGL.createDisplayList( |
93 |
|
"Disable TEXTURE_2D\nColor 1 0 0 1\nBegin TRIANGLES\nVertex -1 -1\n" + |
94 |
|
"Vertex 1 -1\nVertex 1 1\nEnd\n" |
95 |
|
); |
96 |
|
|
97 |
|
triangle = GZZGL.createCallListCoorded(list); |
98 |
} |
} |
99 |
return ret; |
return ret; |
100 |
} |
} |
106 |
|
|
107 |
GZZGL.PaperQuad pq = getPaperQuad(papercode); |
GZZGL.PaperQuad pq = getPaperQuad(papercode); |
108 |
curs = pq.addToListGL(win, list, curs, coordsys1, coordsys2); |
curs = pq.addToListGL(win, list, curs, coordsys1, coordsys2); |
109 |
|
curs = triangle.addToListGL(win, list, curs, coordsys1, -1); |
110 |
return curs; |
return curs; |
111 |
} |
} |
112 |
|
|