96 |
g.setColor(oldfg); |
g.setColor(oldfg); |
97 |
} |
} |
98 |
|
|
99 |
public int putGL(VobScene vs, int coordsys1) { |
public int putGL(final VobScene vs, final int coordsys1) { |
100 |
if(dbg) pa("Addtolistgl coloredsectorvob "+coordsys1); |
if(dbg) pa("Addtolistgl coloredsectorvob "+coordsys1); |
101 |
if(glList == null) { |
if(glList == null) { |
102 |
if (!circleGLReady) prepareCircleGL((float)Math.sqrt(50)/10); |
if (!circleGLReady) prepareCircleGL((float)Math.sqrt(50)/10); |
103 |
|
|
104 |
String bgcall = ""; |
String bgcall = ""; |
105 |
if(nsolids > 0) { |
if(nsolids > 0) { |
|
// Enable Stencil here |
|
106 |
bgcall += glSolidsString(); |
bgcall += glSolidsString(); |
|
// Disable Stencil here |
|
107 |
} else bgcall += glBgString(); |
} else bgcall += glBgString(); |
108 |
if(drawBorder) bgcall += glBorderString(); |
if(drawBorder) bgcall += glBorderString(); |
109 |
|
|
114 |
"PopAttrib\n" |
"PopAttrib\n" |
115 |
); |
); |
116 |
} |
} |
117 |
vs.map.put(glList, coordsys1); |
|
118 |
|
final RectBgVob stencil = new RectBgVob(); |
119 |
|
gzz.gfx.gl.Stencil.drawStenciled( |
120 |
|
vs, |
121 |
|
new Runnable() { public void run() { |
122 |
|
vs.map.put(stencil, coordsys1); |
123 |
|
}}, |
124 |
|
null, |
125 |
|
null, |
126 |
|
new Runnable() { public void run() { |
127 |
|
vs.map.put(glList, coordsys1); |
128 |
|
}}, |
129 |
|
false |
130 |
|
); |
131 |
return 0; |
return 0; |
132 |
} |
} |
133 |
|
|
156 |
); |
); |
157 |
return glString; |
return glString; |
158 |
} |
} |
|
|
|
|
|
|
159 |
} |
} |
160 |
|
|
161 |
|
|