/[libvob]/libvob/test/vob/gl/paper.test
ViewVC logotype

Diff of /libvob/test/vob/gl/paper.test

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

revision 1.3 by jvk, Wed Mar 26 20:28:52 2003 UTC revision 1.4 by jvk, Thu Mar 27 08:24:35 2003 UTC
# Line 23  Line 23 
23    
24  needGL()  needGL()
25    
26    from org.nongnu import libvob as vob
27  from org.nongnu.libvob.vobs import *  from org.nongnu.libvob.vobs import *
28  from java.awt import Color  from java.awt import Color
29  import java  import java
# Line 30  from org.nongnu.libvob.gl import GL, GLR Line 31  from org.nongnu.libvob.gl import GL, GLR
31    
32  from test.tools.gfx import *  from test.tools.gfx import *
33    
34    #def testPaperBasisTexture():
35    #    tex = vob.paper.textures.init(3, "RGB")["RGB2"]
36    #
37    #    for t in tex:
38    #        vs = getvs()
39    #        vs.map.put(SolidBackdropVob(Color.black))
40    #       vs.put(vob.gl.GLCache.getCallList("""
41    #               Color 1 1 1
42    #               PushAttrib ENABLE_BIT
43    #               BindTexture TEXTURE_2D %s
44    #               Enable TEXTURE_2D
45    #               Begin QUAD_STRIP3
46    #               TexCoord 0 0
47    #               Vertex 0 0
48    #               TexCoord 1 0
49    #               Vertex 200 0
50    #               TexCoord 0 1
51    #               Vertex 0 200
52    #               TexCoord 1 1
53    #               Vertex 200 200
54    #               End
55    #               PopAttrib
56    #       """ % t.getTexId()))
57    #        render(vs)
58    
59  def testPaperAnythingJava():  def testPaperAnythingJava():
60      """Test that libpaper, when called through      """Test that libpaper, when called through
61      the Java API, renders anything.      the Java API, renders anything.

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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