77 |
} |
} |
78 |
|
|
79 |
static HashMap papers = new HashMap(); |
static HashMap papers = new HashMap(); |
80 |
static GZZGL.DisplayList list; |
static GL.DisplayList list; |
81 |
static Vob triangle; |
static Vob triangle; |
82 |
|
|
83 |
GZZGL.PaperQuad getPaperQuad(Cell c) { |
GLRen.PaperQuad getPaperQuad(Cell c) { |
84 |
GZZGL.PaperQuad ret = (GZZGL.PaperQuad)papers.get(c); |
GLRen.PaperQuad ret = (GLRen.PaperQuad)papers.get(c); |
85 |
if(ret == null) { |
if(ret == null) { |
86 |
Paper pap; |
Paper pap; |
87 |
GZZGL.PaperQuad pq; |
GLRen.PaperQuad pq; |
88 |
pap = PaperMill.getInstance().getPaper(c.hashCode()); |
pap = PaperMill.getInstance().getPaper(c.hashCode()); |
89 |
ret = GZZGL.createPaperQuad(pap, -1, -1, 1, 1, 100); |
ret = GLRen.createPaperQuad(pap, -1, -1, 1, 1, 100); |
90 |
papers.put(c, ret); |
papers.put(c, ret); |
91 |
|
|
92 |
list = GZZGL.createDisplayList( |
list = GL.createDisplayList( |
93 |
"Disable TEXTURE_2D\nColor 1 0 0 1\nBegin TRIANGLES\nVertex -1 -1\n" + |
"Disable TEXTURE_2D\nColor 1 0 0 1\nBegin TRIANGLES\nVertex -1 -1\n" + |
94 |
"Vertex 1 -1\nVertex 1 1\nEnd\n" |
"Vertex 1 -1\nVertex 1 1\nEnd\n" |
95 |
); |
); |
104 |
int[] list, int curs, int coordsys1, |
int[] list, int curs, int coordsys1, |
105 |
int coordsys2) { |
int coordsys2) { |
106 |
|
|
107 |
GZZGL.PaperQuad pq = getPaperQuad(papercode); |
GLRen.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); |
// curs = triangle.addToListGL(win, list, curs, coordsys1, -1); |
110 |
return curs; |
return curs; |