24 |
needGL() |
needGL() |
25 |
# Really basic |
# Really basic |
26 |
|
|
27 |
|
import java |
28 |
|
import vob |
29 |
from org.nongnu.libvob.gl import IrregularFrame |
from org.nongnu.libvob.gl import IrregularFrame |
30 |
from test.tools.gfx import * |
from test.tools.gfx import * |
31 |
from vob.putil.effects import IrreguFrame |
from vob.putil.effects import IrreguFrame |
34 |
irregu = IrregularFrame.create(0,0,1,1,2,3) |
irregu = IrregularFrame.create(0,0,1,1,2,3) |
35 |
|
|
36 |
def testCrash(): |
def testCrash(): |
37 |
irregu = IrreguFrame(-2, -1.5, 2, 1.5, 0.2, 1.0, type="ellipse") |
for i in range(0,20): |
38 |
|
if i % 5 == 0: |
39 |
|
java.lang.System.gc() |
40 |
|
vob.gl.GL.freeQueue() |
41 |
|
|
42 |
|
irregu = IrreguFrame(-2, -1.5, 2, 1.5, 0.2, 1.0, type="ellipse") |
43 |
|
irregu2 = IrreguFrame(-2, -1.5, 2, 1.5, 0.2, 1.0) |
44 |
|
|
45 |
|
vs = getvs() |
46 |
|
|
47 |
|
cs1 = vs.orthoCS(0, "1", 0, 0, 0, 150, 300) |
48 |
|
cs2 = vs.orthoCS(0, "2", 0, 0, 0, 0, 1 ) |
49 |
|
|
50 |
|
vs.map.put(irregu.frame, cs1, cs2) |
51 |
|
vs.map.put(irregu.content, cs1, cs2) |
52 |
|
vs.map.put(irregu2.frame, cs1, cs2) |
53 |
|
vs.map.put(irregu2.content, cs1, cs2) |
54 |
|
|
55 |
vs = getvs() |
for i in range(0,10): |
56 |
|
render(vs) |
|
cs1 = vs.orthoCS(0, "1", 0, 0, 0, 150, 300) |
|
|
cs2 = vs.orthoCS(0, "2", 0, 0, 0, 0, 1 ) |
|
|
|
|
|
vs.map.put(irregu.frame, cs1, cs2) |
|
|
|
|
|
render(vs) |
|