Beispiel #1
0
 def tkCreateContext(self):
     self.__window = GetDC(self.winfo_id())
     pixelformat = ChoosePixelFormat(self.__window, pfd)
     SetPixelFormat(self.__window, pixelformat, pfd)
     self.__context = wglCreateContext(self.__window)
     wglMakeCurrent(self.__window, self.__context)
Beispiel #2
0
 def tkMakeCurrent(self):
     if self.winfo_ismapped():
         wglMakeCurrent(self.__window, self.__context)
Beispiel #3
0
 def OpenGLActiveContext(self):
     wglMakeCurrent(self.hdc, self.hrc)