Revision 7266d8ef
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/library/main/DistortedRenderState.java | ||
---|---|---|
27 | 27 |
* <p> |
28 | 28 |
* This is a member of DistortedNode. Remembers the OpenGL state we want to set just before rendering |
29 | 29 |
* the Node. |
30 |
* <p> |
|
31 |
* Only for use by the library itself. |
|
32 |
* |
|
33 |
* @y.exclude |
|
30 | 34 |
*/ |
31 |
class DistortedRenderState |
|
35 |
public class DistortedRenderState
|
|
32 | 36 |
{ |
33 | 37 |
// TODO: figure this out dynamically; this assumes 8 bit stencil buffer. |
34 | 38 |
private static final int STENCIL_MASK = (1<<8)-1; |
... | ... | |
258 | 262 |
} |
259 | 263 |
|
260 | 264 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
261 |
|
|
262 |
static void useStencilMark() |
|
265 |
/** |
|
266 |
* Only for use by the library itself. |
|
267 |
* |
|
268 |
* @y.exclude |
|
269 |
*/ |
|
270 |
public static void useStencilMark() |
|
263 | 271 |
{ |
264 | 272 |
if( cState.stencilTest!=1 ) |
265 | 273 |
{ |
... | ... | |
298 | 306 |
} |
299 | 307 |
|
300 | 308 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
301 |
|
|
302 |
static void unuseStencilMark() |
|
309 |
/** |
|
310 |
* Only for use by the library itself. |
|
311 |
* |
|
312 |
* @y.exclude |
|
313 |
*/ |
|
314 |
public static void unuseStencilMark() |
|
303 | 315 |
{ |
304 | 316 |
if( sState.stencilTest!=cState.stencilTest ) |
305 | 317 |
{ |
Also available in: Unified diff
Fix quality levels in Glow.