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) bgcall += glSolidsString(); |
if(nsolids > 0) { |
106 |
else bgcall += glBgString(); |
// Enable Stencil here |
107 |
|
bgcall += glSolidsString(); |
108 |
|
// Disable Stencil here |
109 |
|
} else bgcall += glBgString(); |
110 |
if(drawBorder) bgcall += glBorderString(); |
if(drawBorder) bgcall += glBorderString(); |
111 |
|
|
112 |
glList = GLRen.createCallListBoxCoorded( |
glList = GLRen.createCallListBoxCoorded( |
119 |
vs.map.put(glList, coordsys1); |
vs.map.put(glList, coordsys1); |
120 |
return 0; |
return 0; |
121 |
} |
} |
122 |
|
|
123 |
|
protected String glBgString() { |
124 |
|
String glString = ""; |
125 |
|
glString += ( |
126 |
|
"Color "+ColorUtil.colorGLString(bg)+" 1\n" + |
127 |
|
"Begin QUAD_STRIP\n"+ |
128 |
|
"Vertex 1 1\nVertex 1 0\n"+ |
129 |
|
"Vertex 0 1\nVertex 0 0\n"+ |
130 |
|
"End\n"); |
131 |
|
return glString; |
132 |
|
} |
133 |
|
|
134 |
|
protected String glBorderString() { |
135 |
|
String glString = ""; |
136 |
|
glString += ( |
137 |
|
"Color 0 0 0 1\n"+ |
138 |
|
"Begin LINE_STRIP\n"+ |
139 |
|
"Vertex 1 1\n"+ |
140 |
|
"Vertex 1 0\n"+ |
141 |
|
"Vertex 0 0\n"+ |
142 |
|
"Vertex 0 1\n"+ |
143 |
|
"Vertex 1 1\n"+ |
144 |
|
"End\n" |
145 |
|
); |
146 |
|
return glString; |
147 |
|
} |
148 |
|
|
149 |
|
|
150 |
} |
} |
151 |
|
|
152 |
|
|