File tree Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 4444 "title" : "demosys-py" ,
4545 "vsync" : True ,
4646 "cursor" : True ,
47+ "samples" : 0 ,
4748}
4849
4950MUSIC = None
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ def __init__(self):
3232 )
3333 self .title = settings .WINDOW .get ('title' ) or "demosys-py"
3434 self .aspect_ratio = settings .WINDOW .get ('aspect_ratio' , 16 / 9 )
35+ self .samples = settings .WINDOW .get ('samples' , 0 )
3536
3637 self .resizable = settings .WINDOW .get ('resizable' ) or False
3738 self .fullscreen = settings .WINDOW .get ('fullscreen' )
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ def __init__(self):
2626 glfw .window_hint (glfw .RESIZABLE , self .resizable )
2727 glfw .window_hint (glfw .DOUBLEBUFFER , True )
2828 glfw .window_hint (glfw .DEPTH_BITS , 24 )
29+ glfw .window_hint (glfw .SAMPLES , self .samples )
2930
3031 monitor = None
3132 if self .fullscreen :
Original file line number Diff line number Diff line change 1717 "title" : "Examples" ,
1818 "vsync" : True ,
1919 "cursor" : True ,
20+ "samples" : 4 ,
2021}
2122
2223HEADLESS_DURATION = 10.0
You can’t perform that action at this time.
0 commit comments