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 |
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. |