更逆天了啊喂

This commit is contained in:
shenjack 2024-05-23 21:31:47 +08:00
parent 7a960bb6ed
commit 297aaf236e
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -404,6 +404,7 @@ class SR1ShipRender(BaseScreen):
self.render_d_line.x2 = self.group_camera.view_x self.render_d_line.x2 = self.group_camera.view_x
self.render_d_line.y2 = self.group_camera.view_y self.render_d_line.y2 = self.group_camera.view_y
# 外面这一层 gl 是用来实现子窗口的
gl.glEnable(gl.GL_SCISSOR_TEST) gl.glEnable(gl.GL_SCISSOR_TEST)
gl.glScissor(int(self.dx), int(self.dy), int(self.width), int(self.height)) gl.glScissor(int(self.dx), int(self.dy), int(self.width), int(self.height))
gl.glViewport( gl.glViewport(