예제 #1
0
	def display_context(self, screen, context):
		# clipping according to screen geometry
		x, y, width, height = screen.geometry
		glViewport(x, y, width, height)
		glMatrixMode(GL_PROJECTION)
		glLoadIdentity()
		glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
		glOrtho(x, x + width, y, y + height, -1, 1)
		glMatrixMode(GL_MODELVIEW)

		GraphicEngine.display_context(self, screen, context)