79 |
(p11.y-porig.y)/1000.0f); |
(p11.y-porig.y)/1000.0f); |
80 |
} |
} |
81 |
|
|
82 |
GZZGL.DisplayList displayList; |
GL.DisplayList displayList; |
83 |
GZZGL.CallList callList; |
GLRen.CallList callList; |
84 |
|
|
85 |
static GZZGL.Viewport vp; |
static GLRen.Viewport vp; |
86 |
static GZZGL.CloseViewport cvp; |
static GLRen.CloseViewport cvp; |
87 |
|
|
88 |
public int addToListGL(GraphicsAPI.Window win, |
public int addToListGL(GraphicsAPI.Window win, |
89 |
int[] list, int curs, int coordsys1, |
int[] list, int curs, int coordsys1, |
90 |
int coordsys2) { |
int coordsys2) { |
91 |
if(vp == null) { |
if(vp == null) { |
92 |
vp = GZZGL.createViewport(); |
vp = GLRen.createViewport(); |
93 |
cvp = GZZGL.createCloseViewport(); |
cvp = GLRen.createCloseViewport(); |
94 |
} |
} |
95 |
|
|
96 |
if(displayList == null) { |
if(displayList == null) { |
97 |
GZZGL.Window w = ((GLScreen)win).getWindow(); |
GL.Window w = ((GLScreen)win).getWindow(); |
98 |
|
|
99 |
displayList= GZZGL.createDisplayList(); |
displayList= GL.createDisplayList(); |
100 |
|
|
101 |
displayList.startCompile(w); |
displayList.startCompile(w); |
102 |
|
|
109 |
|
|
110 |
displayList.endCompile(w); |
displayList.endCompile(w); |
111 |
|
|
112 |
callList = GZZGL.createCallList(displayList); |
callList = GLRen.createCallList(displayList); |
113 |
} |
} |
114 |
|
|
115 |
curs = vp.addToListGL(win, list, curs, coordsys1, coordsys2); |
curs = vp.addToListGL(win, list, curs, coordsys1, coordsys2); |