9 |
|
|
10 |
ff.test.gfx.needGL() |
ff.test.gfx.needGL() |
11 |
|
|
12 |
|
ff.view.CanvasView2D.dbg = 1 |
13 |
|
ff.view.TextNodeView.dbg = 1 |
14 |
|
|
15 |
from org.fenfire.test.gfx import * |
from org.fenfire.test.gfx import * |
16 |
|
|
17 |
class DummyMill(vob.gl.PaperMill): |
class DummyMill(vob.gl.PaperMill): |
64 |
|
|
65 |
irregu2D = ff.view.IrregularViewportView2D(paperView2D) |
irregu2D = ff.view.IrregularViewportView2D(paperView2D) |
66 |
|
|
67 |
|
view2D = paperView2D |
68 |
|
|
69 |
# Finally, create the vobscene |
# Finally, create the vobscene |
70 |
vs.put(SolidBackdropVob(Color.black)) |
vs.put(SolidBackdropVob(Color.red)) |
71 |
|
|
72 |
box2screen = vs.orthoBoxCS(0, "b2s", 0, 100, 100, 1, 1, 300, 300) |
box2screen = vs.orthoBoxCS(0, "b2s", 0, 100, 100, 1, 1, 300, 300) |
73 |
box2plane = vs.orthoBoxCS(0, "b2p", 0, 0, 0, .5, .5, 300, 300) |
box2plane = vs.orthoBoxCS(0, "b2p", 0, 0, 0, 2, 2, 300, 300) |
74 |
|
|
75 |
irregu2D.render(vs, nodec, box2screen, box2screen, box2plane) |
view2D.render(vs, nodec, box2screen, box2screen, box2plane) |
76 |
|
|
77 |
render(vs) |
render(vs) |
78 |
|
|