/[gzz]/gzz/gzz/gfx/gl/Stencil.java
ViewVC logotype

Diff of /gzz/gzz/gfx/gl/Stencil.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by tjl, Tue Sep 10 11:39:36 2002 UTC revision 1.2 by tjl, Tue Sep 10 11:52:48 2002 UTC
# Line 19  public class Stencil { Line 19  public class Stencil {
19      private static Vob initZero;      private static Vob initZero;
20      private static Vob exit;      private static Vob exit;
21    
22        static {
23            init();
24        }
25    
26      private static void init() {      private static void init() {
27          if(initStencil != null) return;          if(initStencil != null) return;
28    
# Line 52  public class Stencil { Line 56  public class Stencil {
56    
57          initContents_depth = GZZGL.createCallList(          initContents_depth = GZZGL.createCallList(
58  "    StencilFunc EQUAL 1 255\n"  "    StencilFunc EQUAL 1 255\n"
59    "    StencilMask 0\n"
60              );              );
61          initContents_nodepth = GZZGL.createCallList(          initContents_nodepth = GZZGL.createCallList(
62  "    StencilFunc EQUAL 1 255\n"+  "    StencilFunc EQUAL 1 255\n"+
63  "    DepthMask 0\n"+  "    DepthMask 0\n"+
64    "    StencilMask 0\n"
65  "    Disable DEPTH_TEST\n"  "    Disable DEPTH_TEST\n"
66              );              );
67    
68          initZero = GZZGL.createCallList(          initZero = GZZGL.createCallList(
69  "    StencilFunc EQUAL 1 255\n"+  "    StencilFunc ALWAYS 1 255\n"+
70  "    StencilOp ZERO ZERO ZERO\n"+ // XXX  "    StencilOp ZERO ZERO ZERO\n"+ // XXX
71  "    StencilMask 1\n"+  "    StencilMask 1\n"+
72  "    ColorMask 0 0 0 0\n"  "    ColorMask 0 0 0 0\n"

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26