File tree 4 files changed +4
-0
lines changed
4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 44
44
"title" : "demosys-py" ,
45
45
"vsync" : True ,
46
46
"cursor" : True ,
47
+ "samples" : 0 ,
47
48
}
48
49
49
50
MUSIC = None
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ def __init__(self):
32
32
)
33
33
self .title = settings .WINDOW .get ('title' ) or "demosys-py"
34
34
self .aspect_ratio = settings .WINDOW .get ('aspect_ratio' , 16 / 9 )
35
+ self .samples = settings .WINDOW .get ('samples' , 0 )
35
36
36
37
self .resizable = settings .WINDOW .get ('resizable' ) or False
37
38
self .fullscreen = settings .WINDOW .get ('fullscreen' )
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ def __init__(self):
26
26
glfw .window_hint (glfw .RESIZABLE , self .resizable )
27
27
glfw .window_hint (glfw .DOUBLEBUFFER , True )
28
28
glfw .window_hint (glfw .DEPTH_BITS , 24 )
29
+ glfw .window_hint (glfw .SAMPLES , self .samples )
29
30
30
31
monitor = None
31
32
if self .fullscreen :
Original file line number Diff line number Diff line change 17
17
"title" : "Examples" ,
18
18
"vsync" : True ,
19
19
"cursor" : True ,
20
+ "samples" : 4 ,
20
21
}
21
22
22
23
HEADLESS_DURATION = 10.0
You can’t perform that action at this time.
0 commit comments