34 |
class Scene: |
class Scene: |
35 |
"3D filleting" |
"3D filleting" |
36 |
def __init__(self): |
def __init__(self): |
37 |
|
self.depthTexture = GL.createTexture() |
38 |
|
self.depthTexture.loadNull2D(0, "DEPTH_COMPONENT", |
39 |
|
1024, 1024, 0, "DEPTH_COMPONENT", |
40 |
|
"BYTE") |
41 |
|
self.depthTexture.setTexParameter("TEXTURE_2D", |
42 |
|
"TEXTURE_MAX_LEVEL", 0) |
43 |
|
self.depthTexture.setTexParameter("TEXTURE_2D", |
44 |
|
"TEXTURE_BASE_LEVEL", 0) |
45 |
|
self.depthTexture.setTexParameter("TEXTURE_2D", |
46 |
|
"TEXTURE_MIN_FILTER", "NEAREST") |
47 |
|
self.depthTexture.setTexParameter("TEXTURE_2D", |
48 |
|
"TEXTURE_MAG_FILTER", "NEAREST") |
49 |
self.key = KeyPresses( |
self.key = KeyPresses( |
50 |
self, |
self, |
51 |
SlideLin("x", 200, 20, "x", "Left", "Right"), |
SlideLin("x", 200, 20, "x", "Left", "Right"), |
127 |
PopAttrib |
PopAttrib |
128 |
""")) |
""")) |
129 |
|
|
130 |
|
|