Open gitsunekei1445 opened 3 years ago
Python on Module
def gui_create(self, width, height, title):
if width < 1 and height < 1:
raise Exception('Enter your Width or Height > 0 ')
else:
self.width = width
self.height = height
self.title = title
self.gui = create_window(self.width, self.height, self.title, self.fullscreen, self.share)
if not self.gui:
raise Exception(" GLFW Cen not Create gui !")
# self.icon = Image.open('icon.png')
# set_window_icon(self.gui, 1, self.icon)
set_window_pos(self.gui,self.position_X,self.position_Y)
make_context_current(self.gui)
return self.gui
Python
https://github.com/totex/Learn-OpenGL-in-python/blob/master/ep01_glfw_window.py